InternetAddressListToString(FormatOptions, Boolean) Method

Serialize an InternetAddressList to a string, optionally encoding the list of addresses for transport.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public string ToString(
	FormatOptions options,
	bool encode
)

Parameters

options  FormatOptions
The formatting options.
encode  Boolean
If set to , each InternetAddress in the list will be encoded.

Return Value

String
A string representing the InternetAddressList.

Remarks

If encode is , each address in the list will be encoded according to the rules defined in rfc2047.

If there are multiple addresses in the list, they will be separated by a comma.

See Also