Class MapiRecipient

MapiRecipient class

A recipient of an Outlook message, or of another item such as a meeting.

public class MapiRecipient : MapiPropertyContainer

Properties

NameDescription
AddressType { get; }Gets the type of the address of the recipient, such as SMTP or EX (Exchange).
virtual CodePage { get; }Gets the code page of the ANSI strings of the object.
Content { get; }Gets the content of the recipient.
DisplayName { get; set; }Gets or sets the display name of the recipient.
EmailAddress { get; set; }Gets or sets the e-mail address of the recipient, in SMTP form.
NamedProperties { get; }Gets the named properties of the recipient.
OrganizationEmailAddress { get; }Gets the e-mail address of the recipient within the organization (PR_ORG_EMAIL_ADDR).
virtual Properties { get; }Gets all properties of the object.
PropertyStream { get; }Gets the property stream of the recipient.
RecipientClass { get; }Gets the type of the MAPI object of the recipient, such as a mail user or a distribution list.
RecipientTrackStatus { get; set; }Gets or sets the response of the recipient to a meeting request.
RecipientType { get; }Gets the type of the recipient: To, CC or BCC.
SubStorages { get; }Gets the sub-storages of the recipient.

Methods

NameDescription
virtual GetProperty(PropertyDescriptor)Gets a MAPI property by its descriptor.
GetPropertyBoolean(long)Gets the value of a property as a Boolean.
GetPropertyBytes(long)Gets the value of a property as bytes.
GetPropertyDateTime(long)Gets the value of a property as a date and time.
GetPropertyInt32(long)Gets the value of a property as a 32-bit integer.
GetPropertyLong(long)Gets the value of a property as a 64-bit integer.
GetPropertyShort(long)Gets the value of a property as a 16-bit integer.
GetPropertyString(long)Gets the value of a property as a string.
GetPropertyString(long, int)Gets the value of a property as a string, decoding an ANSI string with the specified code page.
IsStoreUnicodeOk()Determines whether the string properties of the object are stored in Unicode.
virtual SetProperty(MapiProperty)Adds the property, or replaces the property with the same tag.
virtual SetProperty(PropertyDescriptor, object)Sets the value of a MAPI property, creating the property if needed.
TryGetPropertyData(long)Gets the value of a property as bytes.
TryGetPropertyDateTime(long, ref DateTime)Gets the value of a property as a date and time, if the property exists.
TryGetPropertyInt32(long, ref int)Gets the value of a property as a 32-bit integer, if the property exists.
TryGetPropertyLong(long, ref long)Gets the value of a property as a 64-bit integer, if the property exists.
TryGetPropertyString(long)Gets the value of a property as a string.
TryGetPropertyString(long, int)Gets the value of a property as a string, decoding an ANSI string with the specified code page.
TryGetPropertyString(long, ref string)Gets the value of a property as a string, if the property exists.
TryGetPropertyString(long, ref string, int)Gets the value of a property as a string, if the property exists, decoding an ANSI string with the specified code page.

See Also