Click or drag to resize
MimeKit

ContentDispositionTryParse(ParserOptions, String, ContentDisposition) Method

Try to parse the given text into a new ContentDisposition instance.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static bool TryParse(
	ParserOptions options,
	string text,
	out ContentDisposition disposition
)

Parameters

options  ParserOptions
The parser options.
text  String
The text to parse.
disposition  ContentDisposition
The parsed disposition.

Return Value

Boolean
true if the disposition was successfully parsed; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullException

options is null.

-or-

text is null.

Remarks
Parses a Content-Disposition value from the supplied text.
See Also