# EmailRecipient

Associates an address with its recipient role.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailAddress.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L35)

**Modifiers**

sealed

Associates an address with its recipient role.

## Inheritance

- object
- EmailRecipient

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Read and Convert Email Messages](/docs/email/messages-and-conversion/) Guide
  
  Read EML, MSG, OFT, and TNEF (winmail.dat) messages, convert between them, check for conversion loss, stream large attachments, and render a message to PDF.

## Usage

Explore 1 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 1

- Property [EmailDocument.Recipients](/api/email/officeimo-email-emaildocument/#property-recipients)

Filter members 

Show inherited

## Constructors

`public EmailRecipient(EmailRecipientKind kind, EmailAddress address)` [#](#constructor-ctor-officeimo-email-emailrecipientkind-officeimo-email-emailaddress)

[EmailAddress.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L35)

Creates a recipient.

Parameters

**kind OfficeIMO.Email.EmailRecipientKind required**

**address OfficeIMO.Email.EmailAddress required**

## 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 EmailRecipientKind Kind { get; set; }` [#](#property-kind)

[EmailAddress.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L44)

Recipient role.

`public EmailAddress Address { get; set; }` [#](#property-address)

[EmailAddress.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L47)

Recipient address.

`public int? MapiRowId { get; set; }` [#](#property-mapirowid)

[EmailAddress.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L50)

MAPI row identifier when the source supplies one.

`public int? MapiObjectType { get; set; }` [#](#property-mapiobjecttype)

[EmailAddress.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L53)

MAPI object type, normally 6 for a messaging user.

`public int? MapiDisplayType { get; set; }` [#](#property-mapidisplaytype)

[EmailAddress.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L56)

MAPI display type.

`public int? MapiDisplayTypeEx { get; set; }` [#](#property-mapidisplaytypeex)

[EmailAddress.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L59)

Extended MAPI display type used to distinguish rooms.

`public IList<MapiProperty> MapiProperties { get; }` [#](#property-mapiproperties)

[EmailAddress.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L62)

Recipient-level MAPI properties.

`public MapiPropertyBag Mapi { get; }` [#](#property-mapi)

[EmailAddress.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L65)

Typed MAPI access backed by the exact [EmailRecipient.MapiProperties](/api/email/officeimo-email-emailrecipient/) collection.

<!-- PowerForge markdown artifact sha256:39AB879591161B8B987AD82E1C28418CA5DCE8D9031DF09A969433783E5690AD -->
