System.Net.Mail.MailMessage.To Property

Gets the address collection that contains the recipients of this e-mail message.

Syntax

public MailAddressCollection To { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The MailMessage.To property is used to designate the addresses on the To line of an e-mail message. To add a recipient to an e-mail message, create a System.Net.Mail.MailAddress for the recipient's address, and then add that object to the collection returned by this property.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0