Internet Address ListTo String(Format Options, 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
A string representing the InternetAddressList.
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
StringA 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.