ContentDisposition Class

A class representing a Content-Disposition header value.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public class ContentDisposition
Inheritance
Object    ContentDisposition

Remarks

The Content-Disposition header is a way for the originating client to suggest to the receiving client whether to present the part to the user as an attachment or as part of the content (inline).

Constructors

ContentDisposition Initialize a new instance of the ContentDisposition class.
ContentDisposition(String) Initialize a new instance of the ContentDisposition class.

Properties

CreationDate Get or set the creation-date parameter.
Disposition Get or set the disposition.
FileName Get or set the name of the file.
IsAttachment Get or set a value indicating whether the MimePart is an attachment.
ModificationDate Get or set the modification-date parameter.
Parameters Get the list of parameters on the ContentDisposition.
ReadDate Get or set the read-date parameter.
Size Get or set the size parameter.

Methods

Clone Clone the content disposition.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Parse(Byte) Parse the specified input buffer into a new instance of the ContentDisposition class.
Parse(String) Parse the specified text into a new instance of the ContentDisposition class.
Parse(Byte, Int32) Parse the specified input buffer into a new instance of the ContentDisposition class.
Parse(ParserOptions, Byte) Parse the specified input buffer into a new instance of the ContentDisposition class.
Parse(ParserOptions, String) Parse the specified text into a new instance of the ContentDisposition class.
Parse(Byte, Int32, Int32) Parse the specified input buffer into a new instance of the ContentDisposition class.
Parse(ParserOptions, Byte, Int32) Parse the specified input buffer into a new instance of the ContentDisposition class.
Parse(ParserOptions, Byte, Int32, Int32) Parse the specified input buffer into a new instance of the ContentDisposition class.
ToString Serialize the ContentDisposition to a string.
(Overrides ObjectToString)
ToString(Boolean) Serialize the ContentDisposition to a string, optionally encoding the parameters.
ToString(Encoding, Boolean) Serialize the ContentDisposition to a string, optionally encoding the parameters.
ToString(FormatOptions, Encoding, Boolean) Serialize the ContentDisposition to a string, optionally encoding the parameters.
TryParse(Byte, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
TryParse(String, ContentDisposition) Try to parse the given text into a new ContentDisposition instance.
TryParse(Byte, Int32, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
TryParse(ParserOptions, Byte, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
TryParse(ParserOptions, String, ContentDisposition) Try to parse the given text into a new ContentDisposition instance.
TryParse(Byte, Int32, Int32, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
TryParse(ParserOptions, Byte, Int32, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
TryParse(ParserOptions, Byte, Int32, Int32, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.

Fields

Attachment The attachment disposition.
FormData The form-data disposition.
Inline The inline disposition.

See Also

Reference