MapiRecipient Class

A recipient of a message.

public sealed class MapiRecipient

Properties

NameDescription
AddressTypeGets the type of the address, such as SMTP or EX.
DisplayNameGets the display name of the recipient.
EmailAddressGets the address of the recipient, in the format of MapiRecipient.AddressType.
PropertiesGets the properties of the recipient (a row of the recipient table).
RecipientTypeGets the type of the recipient: To, Cc or Bcc.
SmtpAddressGets the SMTP address of the recipient, or the address when its type is SMTP.

AddressType

MapiRecipient.cs

Gets the type of the address, such as SMTP or EX.

public string? AddressType { get; }

Property value

string?

DisplayName

MapiRecipient.cs

Gets the display name of the recipient.

public string? DisplayName { get; }

Property value

string?

EmailAddress

MapiRecipient.cs

Gets the address of the recipient, in the format of MapiRecipient.AddressType.

public string? EmailAddress { get; }

Property value

string?

Gets the properties of the recipient (a row of the recipient table).

public MapiPropertyCollection Properties { get; }

RecipientType

MapiRecipient.cs

Gets the type of the recipient: To, Cc or Bcc.

public MapiRecipientType RecipientType { get; }

Property value

MapiRecipientType

SmtpAddress

MapiRecipient.cs

Gets the SMTP address of the recipient, or the address when its type is SMTP.

public string? SmtpAddress { get; }

Property value

string?

Methods

NameDescription
ToString()Returns the display name and the address of the recipient.

Returns the display name and the address of the recipient.

public override string ToString()

Returns

string The display name and the address of the recipient.