System.Net.Mail.MailAddressCollection.Add Method

Add a list of e-mail addresses to the collection.

Syntax

public void Add (string addresses)

Parameters

addresses
The e-mail addresses to add to the System.Net.Mail.MailAddressCollection. Multiple e-mail addresses must be separated with a comma character (",").

Remarks

If multiple e-mail addresses separated with a semicolon character (";") are passed in the addresses parameter. a FormatException exception is raised.

Requirements

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