GroupAddress(Encoding, String) Constructor

Initialize a new instance of the GroupAddress class.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public GroupAddress(
	Encoding encoding,
	string? name
)

Parameters

encoding  Encoding
The character encoding to be used for encoding the name.
name  String
The name of the group.

Remarks

Creates a new GroupAddress with the specified name. The specified text encoding is used when encoding the name according to the rules of rfc2047.

Exceptions

ArgumentNullException encoding is .

See Also