Rfc2047EncodePhrase(FormatOptions, Encoding, String) Method

Encode a phrase.

Definition

Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static byte[] EncodePhrase(
	FormatOptions options,
	Encoding charset,
	string phrase
)

Parameters

options  FormatOptions
The formatting options
charset  Encoding
The charset encoding.
phrase  String
The phrase to encode.

Return Value

Byte
The encoded phrase.

Remarks

Encodes the phrase according to the rules of rfc2047 using the specified charset encoding and formatting options.

Exceptions

ArgumentNullException

options is .

-or-

charset is .

-or-

phrase is .

See Also