Click or drag to resize
MimeKit

MimeUtilsTryParse(String, ContentEncoding) Method

Try to parse the value of a Content-Transfer-Encoding header.

Namespace: MimeKit.Utils
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static bool TryParse(
	string text,
	out ContentEncoding encoding
)

Parameters

text  String
The text to parse.
encoding  ContentEncoding
The parsed encoding.

Return Value

Boolean
true, if the encoding was successfully parsed, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptiontext is null.
Remarks
Parses a Content-Transfer-Encoding header value.
See Also