EmailAddressCollection.Add 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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for