Click or drag to resize
MimeKit

ContentDisposition Class

A class representing a Content-Disposition header value.
Inheritance Hierarchy
SystemObject
  MimeKitContentDisposition

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public class ContentDisposition

The ContentDisposition type exposes the following members.

Constructors
 NameDescription
Public methodContentDisposition Initialize a new instance of the ContentDisposition class.
Public methodContentDisposition(String) Initialize a new instance of the ContentDisposition class.
Top
Properties
 NameDescription
Public propertyCreationDate Get or set the creation-date parameter.
Public propertyDisposition Get or set the disposition.
Public propertyCode exampleFileName Get or set the name of the file.
Public propertyIsAttachment Get or set a value indicating whether the MimePart is an attachment.
Public propertyModificationDate Get or set the modification-date parameter.
Public propertyCode exampleParameters Get the list of parameters on the ContentDisposition.
Public propertyReadDate Get or set the read-date parameter.
Public propertySize Get or set the size parameter.
Top
Methods
 NameDescription
Public methodClone Clone the content disposition.
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodStatic memberParse(Byte) Parse the specified input buffer into a new instance of the ContentDisposition class.
Public methodStatic memberParse(String) Parse the specified text into a new instance of the ContentDisposition class.
Public methodStatic memberParse(Byte, Int32) Parse the specified input buffer into a new instance of the ContentDisposition class.
Public methodStatic memberParse(ParserOptions, Byte) Parse the specified input buffer into a new instance of the ContentDisposition class.
Public methodStatic memberParse(ParserOptions, String) Parse the specified text into a new instance of the ContentDisposition class.
Public methodStatic memberParse(Byte, Int32, Int32) Parse the specified input buffer into a new instance of the ContentDisposition class.
Public methodStatic memberParse(ParserOptions, Byte, Int32) Parse the specified input buffer into a new instance of the ContentDisposition class.
Public methodStatic memberParse(ParserOptions, Byte, Int32, Int32) Parse the specified input buffer into a new instance of the ContentDisposition class.
Public methodToString Serialize the ContentDisposition to a string.
(Overrides ObjectToString)
Public methodToString(Boolean) Serialize the ContentDisposition to a string, optionally encoding the parameters.
Public methodToString(Encoding, Boolean) Serialize the ContentDisposition to a string, optionally encoding the parameters.
Public methodToString(FormatOptions, Encoding, Boolean) Serialize the ContentDisposition to a string, optionally encoding the parameters.
Public methodStatic memberTryParse(Byte, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
Public methodStatic memberTryParse(String, ContentDisposition) Try to parse the given text into a new ContentDisposition instance.
Public methodStatic memberTryParse(Byte, Int32, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
Public methodStatic memberTryParse(ParserOptions, Byte, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
Public methodStatic memberTryParse(ParserOptions, String, ContentDisposition) Try to parse the given text into a new ContentDisposition instance.
Public methodStatic memberTryParse(Byte, Int32, Int32, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, Int32, ContentDisposition) Try to parse the given input buffer into a new ContentDisposition instance.
Top
Fields
 NameDescription
Public fieldStatic memberAttachment The attachment disposition.
Public fieldStatic memberFormData The form-data disposition.
Public fieldStatic memberInline The inline disposition.
Top
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).
See Also