Редагувати

Поділитися через


MailAddressCollection.Add(String) Method

Definition

Add a list of email addresses to the collection.

public:
 void Add(System::String ^ addresses);
public void Add (string addresses);
override this.Add : string -> unit
Public Sub Add (addresses As String)

Parameters

addresses
String

The email addresses to add to the MailAddressCollection. Multiple email addresses must be separated with a comma character (",").

Exceptions

The addresses parameter is null.

The addresses parameter is an empty string.

The addresses parameter contains an email address that is invalid or not supported.

Remarks

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

Applies to