Click or drag to resize
MimeKit

InternetAddressList  Conversion (InternetAddressList to MailAddressCollection)

Explicit cast to convert a InternetAddressList to a MailAddressCollection.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.1.4
Syntax
C#
public static explicit operator MailAddressCollection (
	InternetAddressList addresses
)

Parameters

addresses
Type: MimeKitInternetAddressList
The addresses.

Return Value

Type: MailAddressCollection
The equivalent MailAddressCollection.
Exceptions
ExceptionCondition
InvalidCastExceptionaddresses contains one or more group addresses and cannot be converted.
Remarks
Casts a InternetAddressList to a MailAddressCollection in cases where you might want to make use of the System.Net.Mail APIs.
See Also