Click or drag to resize
MimeKit

ContentDispositionToString(FormatOptions, Encoding, Boolean) Method

Serialize the ContentDisposition to a string, optionally encoding the parameters.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public string ToString(
	FormatOptions options,
	Encoding charset,
	bool encode
)

Parameters

options  FormatOptions
The formatting options.
charset  Encoding
The charset to be used when encoding the parameter values.
encode  Boolean
If set to true, the parameter values will be encoded.

Return Value

String
The serialized string.
Exceptions
ExceptionCondition
ArgumentNullException

options is null.

-or-

charset is null.

Remarks
Creates a string-representation of the ContentDisposition, optionally encoding the parameters as they would be encoded for transport.
See Also