EmailAddressToString Method |
Returns the e-mail address as a string.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public override string ToString()
Public Overrides Function ToString As String
Return Value
Type:
StringA string containing the full e-mail address (including display name and remarks if any).
Remarks
The return value of this method is equivalent to the
AsString property value. However,
with
AsString property, the developer can both get and set the e-mail address.
Examples This sample creates the new instance of the
EmailAddress object and converts it into a string.
using MailBee;
using MailBee.Mime;
EmailAddress adr = new EmailAddress();
adr.DisplayName = "John Doe";
adr.Email = "jdoe@domain.com";
adr.Remarks = "ABC Company";
Console.WriteLine(adr.ToString());
Imports MailBee
Imports MailBee.Mime
Dim adr As New EmailAddress
adr.DisplayName = "John Doe"
adr.Email = "jdoe@domain.com"
adr.Remarks = "ABC Company"
Console.WriteLine(adr.ToString())
See Also