Click or drag to resize
MimeKit

InternetAddressListToString(FormatOptions, Boolean) Method

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

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

Parameters

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

Return Value

String
A string representing the InternetAddressList.
Remarks

If encode is true, 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