OutlookRecipient Class
Definition
Represents one recipient of a message: a typed view over the recipient's decoded properties.
public sealed class OutlookRecipient
- Inheritance
-
OutlookRecipient
- Inherited Members
- Extension Methods
Remarks
The conveniences return null when the underlying property is absent; every recipient property
remains reachable through Properties. The format readers construct instances from whichever container
structure carries the recipient - a .msg recipient storage or a PST recipient-table row - so the type itself
is container-free.
Constructors
OutlookRecipient(MapiPropertyCollection)
Initializes a new instance of the OutlookRecipient class.
public OutlookRecipient(MapiPropertyCollection properties)
Parameters
propertiesMapiPropertyCollectionThe recipient's decoded properties. Must not be null.
Exceptions
- ArgumentNullException
Thrown if
propertiesis null.
Properties
AddressType
Gets the recipient address type (for example, SMTP or EX).
public string? AddressType { get; }
Property Value
DisplayName
Gets the recipient display name.
public string? DisplayName { get; }
Property Value
EmailAddress
Gets the recipient email address.
public string? EmailAddress { get; }
Property Value
Properties
Gets every decoded property of the recipient.
public MapiPropertyCollection Properties { get; }
Property Value
- MapiPropertyCollection
The tag-addressed property collection.
RecipientType
Gets how the recipient participates in the message.
public OutlookRecipientType? RecipientType { get; }
Property Value
- OutlookRecipientType?
The
PidTagRecipientTypevalue when present and defined; otherwise null.
Methods
ToString()
Returns a textual form of the recipient for diagnostics.
public override string ToString()
Returns
- string
The recipient type and display name or address.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |