Content DispositionTo String(Format Options, Encoding, Boolean) Method
Serialize the ContentDisposition to a string, optionally encoding the parameters.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The serialized string.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
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 , the parameter values will be encoded.
Return Value
StringThe serialized string.
Remarks
Creates a string-representation of the ContentDisposition,
optionally encoding the parameters as they would be encoded for transport.
Exceptions
| ArgumentNullException |
options is . -or- charset is . |