System.Net.Mail.MailAddressCollection Class

Store e-mail addresses that are associated with an e-mail message.

See Also: MailAddressCollection Members

Syntax

public class MailAddressCollection : System.Collections.ObjectModel.Collection<MailAddress>

Remarks

The MailMessage.To, MailMessage.CC, and MailMessage.Bcc properties return instances of this class that are used to hold the respective e-mail addresses.

For details on the mail address formats supported by the System.Net.Mail.MailAddressCollection class, see the System.Net.Mail.MailAddress class.

Requirements

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