# OutlookTaskCommunication

Typed task lifecycle envelope and its required embedded task payload.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[OutlookTaskCommunication.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Email/Outlook/OutlookTaskCommunication.cs#L84)

**Modifiers**

sealed

Typed task lifecycle envelope and its required embedded task payload.

## Inheritance

- object
- OutlookTaskCommunication

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Property [EmailDocument.TaskCommunication](/api/email/officeimo-email-emaildocument/#property-taskcommunication)
- Method [OutlookTaskCommunication.Create](/api/email/officeimo-email-outlooktaskcommunication/#method-create-officeimo-email-outlooktaskcommunicationkind-officeimo-email-emaildocument)

Filter members 

Show inherited

## Constructors

`public OutlookTaskCommunication()` [#](#constructor-ctor)

## Methods

`public static OutlookTaskCommunication Create(OutlookTaskCommunicationKind kind, EmailDocument embeddedTask)` [#](#method-create-officeimo-email-outlooktaskcommunicationkind-officeimo-email-emaildocument)

[OutlookTaskCommunication.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Email/Outlook/OutlookTaskCommunication.cs#L84)

Creates a communication and ensures that its embedded task has a correlation identifier.

Parameters

**kind OfficeIMO.Email.OutlookTaskCommunicationKind required**

**embeddedTask OfficeIMO.Email.EmailDocument required**

Returns

`OutlookTaskCommunication`

`public OutlookTaskCommunicationValidationReport Validate()` [#](#method-validate)

[OutlookTaskCommunication.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Email/Outlook/OutlookTaskCommunication.cs#L95)

Validates the semantic payload and the original attachment wire shape, when available.

Returns

`OutlookTaskCommunicationValidationReport`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OutlookTaskCommunicationKind Kind { get; set; }` [#](#property-kind)

[OutlookTaskCommunication.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Email/Outlook/OutlookTaskCommunication.cs#L76)

Communication kind derived from, or written to, the message class.

`public EmailDocument? EmbeddedTask { get; set; }` [#](#property-embeddedtask)

[OutlookTaskCommunication.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Email/Outlook/OutlookTaskCommunication.cs#L78)

The task embedded in the communication's first attachment.

`public EmailAttachment? PayloadAttachment { get; internal set; }` [#](#property-payloadattachment)

[OutlookTaskCommunication.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Email/Outlook/OutlookTaskCommunication.cs#L80)

The source payload attachment, when the communication was read from an artifact.

<!-- PowerForge markdown artifact sha256:C6A031920D60A15DDE502EF55D9CB2B02437CDC39266D4CE5C0D638AFFD2304F -->
