ContentDispositionHeaderValue ContentDispositionHeaderValue ContentDispositionHeaderValue ContentDispositionHeaderValue Class

Definition

Represents the value of the Content-Disposition header.

public ref class ContentDispositionHeaderValue : ICloneable
public class ContentDispositionHeaderValue : ICloneable
type ContentDispositionHeaderValue = class
    interface ICloneable
Public Class ContentDispositionHeaderValue
Implements ICloneable
Inheritance
ContentDispositionHeaderValueContentDispositionHeaderValueContentDispositionHeaderValueContentDispositionHeaderValue
Implements

Remarks

The Content-Disposition header is normally used for working with file uploads and downloads. The format differs from other headers in that it is a single header with a disposition type followed by a list of parameters, some of which are well defined.

This header is used in two different contexts:

  1. A MIME header for nested body content in the MultipartFormDataContent class. For more information, see IETF RFC 2183.

  2. An HTTP header in HttpContentHeaders class. For more information, see IETF RFC 6266.

Constructors

ContentDispositionHeaderValue(ContentDispositionHeaderValue) ContentDispositionHeaderValue(ContentDispositionHeaderValue) ContentDispositionHeaderValue(ContentDispositionHeaderValue) ContentDispositionHeaderValue(ContentDispositionHeaderValue)

Initializes a new instance of the ContentDispositionHeaderValue class.

ContentDispositionHeaderValue(String) ContentDispositionHeaderValue(String) ContentDispositionHeaderValue(String) ContentDispositionHeaderValue(String)

Initializes a new instance of the ContentDispositionHeaderValue class.

Properties

CreationDate CreationDate CreationDate CreationDate

The date at which the file was created.

DispositionType DispositionType DispositionType DispositionType

The disposition type for a content body part.

FileName FileName FileName FileName

A suggestion for how to construct a filename for storing the message payload to be used if the entity is detached and stored in a separate file.

FileNameStar FileNameStar FileNameStar FileNameStar

A suggestion for how to construct filenames for storing message payloads to be used if the entities are detached and stored in a separate files.

ModificationDate ModificationDate ModificationDate ModificationDate

The date at which the file was last modified.

Name Name Name Name

The name for a content body part.

Parameters Parameters Parameters Parameters

A set of parameters included the Content-Disposition header.

ReadDate ReadDate ReadDate ReadDate

The date the file was last read.

Size Size Size Size

The approximate size, in bytes, of the file.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified Object is equal to the current ContentDispositionHeaderValue object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as a hash function for an ContentDispositionHeaderValue object.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Parse(String) Parse(String) Parse(String) Parse(String)

Converts a string to an ContentDispositionHeaderValue instance.

ToString() ToString() ToString() ToString()

Returns a string that represents the current ContentDispositionHeaderValue object.

TryParse(String, ContentDispositionHeaderValue) TryParse(String, ContentDispositionHeaderValue) TryParse(String, ContentDispositionHeaderValue) TryParse(String, ContentDispositionHeaderValue)

Determines whether a string is valid ContentDispositionHeaderValue information.

Explicit Interface Implementations

ICloneable.Clone() ICloneable.Clone() ICloneable.Clone() ICloneable.Clone()

Creates a new object that is a copy of the current ContentDispositionHeaderValue instance.

Applies to