Click or drag to resize
MimeKit

GroupAddressToString(FormatOptions, Boolean) Method

Return a string representation of the GroupAddress, optionally encoding it for transport.

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

Parameters

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

Return Value

String
A string representing the GroupAddress.
Exceptions
ExceptionCondition
ArgumentNullExceptionoptions is null.
Remarks
Returns a string containing the formatted group of addresses. If the encode parameter is true, then the name of the group and all member addresses will be encoded according to the rules defined in rfc2047, otherwise the names will not be encoded at all and will therefor only be suitable for display purposes.
See Also