EmailAddress Constructors
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
EmailAddress() |
Initializes a new instance of the EmailAddress class. |
EmailAddress(String) |
Initializes a new instance of the EmailAddress class with a Simple Mail Transfer Protocol (SMTP) address. |
EmailAddress(String, String) |
Initializes a new instance of the EmailAddress class with a user name and a Simple Mail Transfer Protocol (SMTP) address. |
EmailAddress(String, String, String) |
Initializes a new instance of the EmailAddress class with a user name, routing type, and a Simple Mail Transfer Protocol (SMTP) address. |
EmailAddress()
Initializes a new instance of the EmailAddress class.
public:
EmailAddress();
public EmailAddress ();
Public Sub New ()
Applies to
EmailAddress(String)
Initializes a new instance of the EmailAddress class with a Simple Mail Transfer Protocol (SMTP) address.
public:
EmailAddress(System::String ^ smtpAddress);
public EmailAddress (string smtpAddress);
Public Sub New (smtpAddress As String)
Parameters
- smtpAddress
- String
An SMTP address.
Applies to
EmailAddress(String, String)
Initializes a new instance of the EmailAddress class with a user name and a Simple Mail Transfer Protocol (SMTP) address.
public:
EmailAddress(System::String ^ name, System::String ^ smtpAddress);
public EmailAddress (string name, string smtpAddress);
Public Sub New (name As String, smtpAddress As String)
Parameters
- name
- String
The name of a mailbox user.
- smtpAddress
- String
An SMTP address.
Applies to
EmailAddress(String, String, String)
Initializes a new instance of the EmailAddress class with a user name, routing type, and a Simple Mail Transfer Protocol (SMTP) address.
public:
EmailAddress(System::String ^ name, System::String ^ address, System::String ^ routingType);
public EmailAddress (string name, string address, string routingType);
Public Sub New (name As String, address As String, routingType As String)
Parameters
- name
- String
The name of a mailbox user.
- address
- String
An SMTP address.
- routingType
- String
A routing type.