EmailAddressCollection.Add EmailAddressCollection.Add EmailAddressCollection.Add Method

Definition

Overloads

Add(EmailAddress) Add(EmailAddress)

Adds an e-mail address to the collection.

Add(String) Add(String) Add(String)

Adds an e-mail address to the collection.

Add(String, String) Add(String, String) Add(String, String)

Adds an e-mail address to the collection.

Add(EmailAddress) 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 EmailAddress EmailAddress

The e-mail address to add.

Add(String) Add(String) 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 String 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.

Add(String, String) Add(String, String) 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 String String

The name used to initialize the e-mail address.

smtpAddress
String String 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