MailAddressCollection.Add(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.