EmailAddressCollectionParse Method |
Creates a new
EmailAddressCollection instance from the specified string containing the list of e-mail addresses.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public static EmailAddressCollection Parse(
string addressString
)
Public Shared Function Parse (
addressString As String
) As EmailAddressCollection
Parameters
- addressString
- Type: SystemString
The string specifying the list of the e-mail addresses delimited
with comma (,) or semicolon (;).
Return Value
Type:
EmailAddressCollectionEmailAddressCollection object representing
addressString addresses.
Examples This sample creates a new collection of full e-mail addresses and displays each actual e-mail address.
using MailBee;
using MailBee.Mime;
EmailAddressCollection adrs =
EmailAddressCollection.Parse(@"User1 <user1@domain.com>, user2@domain.com");
foreach (EmailAddress adr in adrs)
{
Console.WriteLine(adr.Email);
}
Imports MailBee
Imports MailBee.Mime
Dim adrs As EmailAddressCollection = _
EmailAddressCollection.Parse("User1 <user1@domain.com>, user2@domain.com")
For Each adr As EmailAddress In adrs
Console.WriteLine(adr.Email)
Next
See Also