MapiRecipientBuilder Class
A recipient of a message to write.
public sealed class MapiRecipientBuilderConstructors
| Name | Description |
|---|---|
| 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.csInitializes a new instance of the MapiRecipientBuilder class.
public MapiRecipientBuilder()MapiRecipientBuilder(string?, string, MapiRecipientType)
MapiRecipientBuilder.csInitializes a new instance of the MapiRecipientBuilder class with an SMTP address.
public MapiRecipientBuilder(string? displayName, string emailAddress, MapiRecipientType recipientType = MapiRecipientType.To)Parameters
displayNamestring?- The display name of the recipient.
emailAddressstring- The SMTP address of the recipient.
recipientTypeMapiRecipientType- The type of the recipient.
Properties
| Name | Description |
|---|---|
| AddressType | Gets or sets the type of the address, such as SMTP. |
| DisplayName | Gets or sets the display name. |
| EmailAddress | Gets or sets the address, in the format of MapiRecipientBuilder.AddressType. |
| Properties | Gets the properties of the recipient. The other members of the builder read and write them. |
| RecipientType | Gets or sets the type of the recipient. |
| SmtpAddress | Gets or sets the SMTP address, when MapiRecipientBuilder.EmailAddress has another format. |
AddressType
MapiRecipientBuilder.csDisplayName
MapiRecipientBuilder.csEmailAddress
MapiRecipientBuilder.csGets or sets the address, in the format of MapiRecipientBuilder.AddressType.
public string? EmailAddress { get; set; }Property value
Properties
MapiRecipientBuilder.csGets the properties of the recipient. The other members of the builder read and write them.
public MapiPropertyBag Properties { get; }Property value
RecipientType
MapiRecipientBuilder.csGets or sets the type of the recipient.
public MapiRecipientType RecipientType { get; set; }Property value
SmtpAddress
MapiRecipientBuilder.csGets or sets the SMTP address, when MapiRecipientBuilder.EmailAddress has another format.
public string? SmtpAddress { get; set; }