Internet AddressTo String(Boolean) Method
Serialize an InternetAddress to a string, optionally encoding it for transport.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
A string representing the InternetAddress.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public string ToString(
bool encode
)Parameters
- encode Boolean
- If set to , the InternetAddress will be encoded.
Return Value
StringA string representing the InternetAddress.
Remarks
If the encode parameter is , then this method will return an encoded version of the internet address according to the rules described in rfc2047.
However, if the encode parameter is , then this method will return a string suitable only for display purposes.