EmailAddressCollection.Add Method

Definition

Overloads

Add(EmailAddress)

Adds an e-mail address to the collection.

Add(String)

Adds an e-mail address to the collection.

Add(String, String)

Adds an e-mail address to the collection.

Add(EmailAddress)

Adds an e-mail address to the collection.

public:
 void Add(Microsoft::Exchange::WebServices::Data::EmailAddress ^ emailAddress);
public void Add (Microsoft.Exchange.WebServices.Data.EmailAddress emailAddress);

Parameters

emailAddress
EmailAddress

The e-mail address to add.

Applies to

Add(String)

Adds an e-mail address to the collection.

public:
 Microsoft::Exchange::WebServices::Data::EmailAddress ^ Add(System::String ^ smtpAddress);
public Microsoft.Exchange.WebServices.Data.EmailAddress Add (string smtpAddress);
Public Function Add (smtpAddress As String) As EmailAddress

Parameters

smtpAddress
String

The SMTP address that is used to initialize the e-mail address.

Returns

An EmailAddress object that is created from the provided SMTP address.

Applies to

Add(String, String)

Adds an e-mail address to the collection.

public:
 Microsoft::Exchange::WebServices::Data::EmailAddress ^ Add(System::String ^ name, System::String ^ smtpAddress);
public Microsoft.Exchange.WebServices.Data.EmailAddress Add (string name, string smtpAddress);
Public Function Add (name As String, smtpAddress As String) As EmailAddress

Parameters

name
String

The name used to initialize the e-mail address.

smtpAddress
String

The SMTP address that is used to initialize the e-mail address.

Returns

An EmailAddress object that is initialized with the provided SMTP address and name.

Applies to