PowerTCP Mail for .NET
MailAddress Constructor(String,String,String)
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MailAddress Class > MailAddress Constructor : MailAddress Constructor(String,String,String)




friendlyName
The friendly name of the email address.
user
The user name of the email address.
domain
The domain of the email address.
Initialize a new instance of the MailAddress class supplying detailed email address info.

Syntax

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)
C# 
public MailAddress( 
   string friendlyName,
   string user,
   string domain
)
Managed Extensions for C++ 
public: MailAddress( 
   string* friendlyName,
   string* user,
   string* domain
)
C++/CLI 
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.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.