Mime UtilsTry Parse(String, Content Encoding) Method
Try to parse the value of a Content-Transfer-Encoding header.
Definition
Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the encoding was successfully parsed; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static bool TryParse(
string? text,
out ContentEncoding? encoding
)Parameters
- text String
- The text to parse.
- encoding ContentEncoding
- The parsed encoding.
Return Value
Booleanif the encoding was successfully parsed; otherwise, .
Remarks
Parses a Content-Transfer-Encoding header value.