Click or drag to resize
MimeKit

InternetAddressToString(FormatOptions, Boolean) Method

Serialize an InternetAddress to a string, optionally encoding it for transport.

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

Parameters

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

Return Value

String
A string representing the InternetAddress.
Exceptions
ExceptionCondition
ArgumentNullExceptionoptions is .
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.

See Also