Rfc 2047Encode Phrase(Encoding, String, Int 32, Int 32) Method
Encode a phrase.
Definition
Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The encoded phrase.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static byte[] EncodePhrase(
Encoding charset,
string phrase,
int startIndex,
int count
)Parameters
- charset Encoding
- The charset encoding.
- phrase String
- The phrase to encode.
- startIndex Int32
- The starting index of the phrase to encode.
- count Int32
- The number of characters to encode.
Return Value
ByteThe encoded phrase.
Remarks
Encodes the phrase according to the rules of rfc2047 using
the specified charset encoding and formatting options.
Exceptions
| ArgumentNullException |
charset is . -or- phrase is . |
| ArgumentOutOfRangeException | startIndex and count do not specify a valid range in the byte array. |