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: 4.7.1
Syntax
C#
public static explicit operator MailAddressCollection (
	InternetAddressList addresses
)

Parameters

addresses  InternetAddressList
The addresses.

Return Value

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