| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal friendlyName As String, _ ByVal user As String, _ ByVal domain As String _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim friendlyName As String Dim user As String Dim domain As String Dim instance As New MailAddress(friendlyName, user, domain) | |
| Managed Extensions for C++ | |
|---|---|
public: MailAddress( string* friendlyName, string* user, string* domain ) | |
Parameters
- friendlyName
- The friendly name of the email address.
- user
- The user name of the email address.
- domain
- The domain of the email address.
When using PowerTCP, email addresses are represented by MailAddress objects. A MailAddress object can be created using this constructor like so:
MailAddress m = new MailAddress("John Doe", "john", "blah.com");
This will create a MailAddress object and populate the MailAddress.Address, MailAddress.Domain, MailAddress.User, and MailAddress.Friendly properties with the values passed in.
Target Platforms: Microsoft .NET Framework 2.0