Click or drag to resize
MimeKit

Rfc2047EncodePhrase(Encoding, String) Method

Encode a phrase.

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

Parameters

charset  Encoding
The charset encoding.
phrase  String
The phrase to encode.

Return Value

Byte
The encoded phrase.
Exceptions
ExceptionCondition
ArgumentNullException

charset is null.

-or-

phrase is null.

Remarks
Encodes the phrase according to the rules of rfc2047 using the specified charset encoding.
See Also