Mail​Recipient Class

Definition

Represents an email address that can be used when calling SendInsecureMessageFromApplication.

public class MailRecipient
Inheritance
MailRecipient

Remarks

The MailRecipient class contains the email address and the display name of the person to whom the mail is being sent. It provides the methods to get the XML representation that adheres to the schema for the SendInsecureMessageFromApplication method.

Constructors

Mail​Recipient(​String, ​String)

Creates a new instance of the MailRecipient class with the specified email address and display name.

Properties

Display​Name

Gets or sets the display name of the person to which the email will be sent.

Email​Address

Gets or sets the email address of the person who receives the email.

Methods

To​String()

Gets the XML representation of the email recipient as a string.

Write​Xml(​Xml​Writer)

Writes the XML representation of the email recipient into the specified XML writer.