MapiRecipientBuilder Class

A recipient of a message to write.

public sealed class MapiRecipientBuilder

Constructors

NameDescription
MapiRecipientBuilder()Initializes a new instance of the MapiRecipientBuilder class.
MapiRecipientBuilder(string?, string, MapiRecipientType)Initializes a new instance of the MapiRecipientBuilder class with an SMTP address.

MapiRecipientBuilder overloads

MapiRecipientBuilder()

MapiRecipientBuilder.cs

Initializes a new instance of the MapiRecipientBuilder class.

public MapiRecipientBuilder()

MapiRecipientBuilder(string?, string, MapiRecipientType)

MapiRecipientBuilder.cs

Initializes a new instance of the MapiRecipientBuilder class with an SMTP address.

public MapiRecipientBuilder(string? displayName, string emailAddress, MapiRecipientType recipientType = MapiRecipientType.To)
Parameters
displayName string?
The display name of the recipient.
emailAddress string
The SMTP address of the recipient.
recipientType MapiRecipientType
The type of the recipient.

Properties

NameDescription
AddressTypeGets or sets the type of the address, such as SMTP.
DisplayNameGets or sets the display name.
EmailAddressGets or sets the address, in the format of MapiRecipientBuilder.AddressType.
PropertiesGets the properties of the recipient. The other members of the builder read and write them.
RecipientTypeGets or sets the type of the recipient.
SmtpAddressGets or sets the SMTP address, when MapiRecipientBuilder.EmailAddress has another format.

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

public string? AddressType { get; set; }

Property value

string?

Gets or sets the display name.

public string? DisplayName { get; set; }

Property value

string?

Gets or sets the address, in the format of MapiRecipientBuilder.AddressType.

public string? EmailAddress { get; set; }

Property value

string?

Gets the properties of the recipient. The other members of the builder read and write them.

public MapiPropertyBag Properties { get; }

Property value

MapiPropertyBag

Gets or sets the type of the recipient.

public MapiRecipientType RecipientType { get; set; }

Property value

MapiRecipientType

Gets or sets the SMTP address, when MapiRecipientBuilder.EmailAddress has another format.

public string? SmtpAddress { get; set; }

Property value

string?