EmailAddress Constructor (String, String, String) |
Initializes a new instance of the
EmailAddress object from the specified e-mail address parts.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public EmailAddress(
string email,
string displayName,
string remarks
)
Public Sub New (
email As String,
displayName As String,
remarks As String
)
Parameters
- email
- Type: SystemString
The actual e-mail address (such as johndoe@domain.com). - displayName
- Type: SystemString
The name which is displayed with the actual e-mail address (such as John Doe).
If a null reference (Nothing in Visual Basic), no display name will be assigned to the e-mail address. - remarks
- Type: SystemString
The remarks which are displayed with the actual e-mail address (such as ABC Company).
If a null reference (Nothing in Visual Basic), no remarks will be assigned to the e-mail address.
Exceptions Examples This sample creates a new instance of the
EmailAddress object.
using MailBee;
using MailBee.Mime;
EmailAddress adr = new EmailAddress("john_doe@domain.com", "John Doe", "ABC Company");
Imports MailBee
Imports MailBee.Mime
Dim adr As New EmailAddress("john_doe@domain.com", "John Doe", "ABC Company")
See Also