Table of Contents

OutlookRecipient Class

Definition

Namespace
Bodu.Formats.Outlook
Assembly
Bodu.Formats.Outlook.dll
Package
Bodu.Formats.Outlook 0.7.1
Source
OutlookRecipient.cs

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

properties MapiPropertyCollection

The recipient's decoded properties. Must not be null.

Exceptions

ArgumentNullException

Thrown if properties is null.

Properties

AddressType

Gets the recipient address type (for example, SMTP or EX).

public string? AddressType { get; }

Property Value

string

The PidTagAddressType value, or null when absent.

DisplayName

Gets the recipient display name.

public string? DisplayName { get; }

Property Value

string

The PidTagDisplayName value, or null when absent.

EmailAddress

Gets the recipient email address.

public string? EmailAddress { get; }

Property Value

string

The PidTagEmailAddress value, or null when absent.

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 PidTagRecipientType value 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

ProductVersions
.NET8, 10