Click or drag to resize
MimeKit

ContentTypeParse(ParserOptions, String) Method

Parse the specified text into a new instance of the ContentType class.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public static ContentType Parse(
	ParserOptions options,
	string text
)

Parameters

options  ParserOptions
The parser options.
text  String
The text.

Return Value

ContentType
The parsed ContentType.
Exceptions
ExceptionCondition
ArgumentNullException

options is null.

-or-

text is null.

ParseException The text could not be parsed.
Remarks
Parses a Content-Type value from the specified text.
See Also