Click or drag to resize
MimeKit

ContentTypeParse(String) Method

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

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static ContentType Parse(
	string text
)

Parameters

text  String
The text.

Return Value

ContentType
The parsed ContentType.
Exceptions
ExceptionCondition
ArgumentNullExceptiontext is null.
ParseException The text could not be parsed.
Remarks
Parses a Content-Type value from the specified text.
See Also