แก้ไข

แชร์ผ่าน


ContentDispositionHeaderValue Class

Definition

Represents the value of the Content-Disposition header.

public ref class ContentDispositionHeaderValue
public ref class ContentDispositionHeaderValue : ICloneable
public class ContentDispositionHeaderValue
public class ContentDispositionHeaderValue : ICloneable
type ContentDispositionHeaderValue = class
type ContentDispositionHeaderValue = class
    interface ICloneable
Public Class ContentDispositionHeaderValue
Public Class ContentDispositionHeaderValue
Implements ICloneable
Inheritance
ContentDispositionHeaderValue
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)

Initializes a new instance of the ContentDispositionHeaderValue class.

ContentDispositionHeaderValue(String)

Initializes a new instance of the ContentDispositionHeaderValue class.

Properties

CreationDate

The date at which the file was created.

DispositionType

The disposition type for a content body part.

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

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

The date at which the file was last modified.

Name

The name for a content body part.

Parameters

A set of parameters included the Content-Disposition header.

ReadDate

The date the file was last read.

Size

The approximate size, in bytes, of the file.

Methods

Equals(Object)

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

GetHashCode()

Serves as a hash function for an ContentDispositionHeaderValue 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(String)

Converts a string to an ContentDispositionHeaderValue instance.

ToString()

Returns a string that represents the current ContentDispositionHeaderValue object.

TryParse(String, ContentDispositionHeaderValue)

Determines whether a string is valid ContentDispositionHeaderValue information.

Explicit Interface Implementations

ICloneable.Clone()

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

Applies to