Tnef Recipient Class
A recipient of a TNEF message.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public sealed class TnefRecipient- Inheritance
- Object TnefRecipient
Remarks
A TnefRecipient is a single row of the RecipientTable attribute of a TnefMessage.
The convenience properties are derived from Properties, which contains all of the recipient's MAPI properties.
Example
C#
public static void PrintRecipients (TnefMessage tnef)
{
foreach (var recipient in tnef.Recipients) {
Console.WriteLine ("{0}: {1} <{2}> ({3})", recipient.RecipientType, recipient.DisplayName,
recipient.EmailAddress, recipient.AddressType);
// Every property of the recipient is also available.
var smtpAddress = recipient.Properties.GetString (TnefPropertyTag.SmtpAddressW);
if (smtpAddress != null)
Console.WriteLine (" SMTP address: {0}", smtpAddress);
}
}
Properties
| AddressType | Get the address type of the recipient. |
| DisplayName | Get the display name of the recipient. |
| EmailAddress | Get the email address of the recipient. |
| Properties | Get the recipient's MAPI properties. |
| RecipientType | Get the type of the recipient. |
Methods
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |