Internet Address ListTo String(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(
bool encode
)Parameters
- 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.