EmailAddressCollectionToString Method |
Returns the string containing all the e-mail addresses in the collection.
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:
String
The comma-separated list of the full e-mail addresses (with optional friendly names and remarks) in the collection.
Remarks
By default, the e-mail addresses are delimited with comma (",") character. See
AsString topic on how
to change the delimiter to semicolon (;).
Examples This sample creates the new collection of the e-mail addresses and displays this collection as string.
using MailBee;
using MailBee.Mime;
EmailAddressCollection adrs = new EmailAddressCollection();
adrs.AddFromString("jdoe@domain1.com");
adrs.AddFromString("some one <someone@domain2.com>");
adrs.AddFromString("me@host.com (Comment)");
Console.WriteLine(adrs.ToString());
Imports MailBee
Imports MailBee.Mime
Dim adrs = New EmailAddressCollection
adrs.AddFromString("jdoe@domain1.com")
adrs.AddFromString("some one <someone@domain2.com>")
adrs.AddFromString("me@host.com (Comment)")
Console.WriteLine(adrs.ToString())
See Also