ContentDispositionHeaderValue Class

ContentDispositionHeaderValue Class

.NET Framework (current version)
 

Represents the value of the Content-Disposition header.

Namespace:   System.Net.Http.Headers
Assembly:  System.Net.Http (in System.Net.Http.dll)

System.Object
  System.Net.Http.Headers.ContentDispositionHeaderValue

public class ContentDispositionHeaderValue : ICloneable

NameDescription
System_CAPS_protmethodContentDispositionHeaderValue(ContentDispositionHeaderValue)

Initializes a new instance of the ContentDispositionHeaderValue class.

System_CAPS_pubmethodContentDispositionHeaderValue(String)

Initializes a new instance of the ContentDispositionHeaderValue class.

NameDescription
System_CAPS_pubpropertyCreationDate

The date at which the file was created.

System_CAPS_pubpropertyDispositionType

The disposition type for a content body part.

System_CAPS_pubpropertyFileName

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.

System_CAPS_pubpropertyFileNameStar

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.

System_CAPS_pubpropertyModificationDate

The date at which the file was last modified.

System_CAPS_pubpropertyName

The name for a content body part.

System_CAPS_pubpropertyParameters

A set of parameters included the Content-Disposition header.

System_CAPS_pubpropertyReadDate

The date the file was last read.

System_CAPS_pubpropertySize

The approximate size, in bytes, of the file.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is equal to the current ContentDispositionHeaderValue object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for an ContentDispositionHeaderValue object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticParse(String)

Converts a string to an ContentDispositionHeaderValue instance.

System_CAPS_pubmethodToString()

Returns a string that represents the current ContentDispositionHeaderValue object.(Overrides Object.ToString().)

System_CAPS_pubmethodSystem_CAPS_staticTryParse(String, ContentDispositionHeaderValue)

Determines whether a string is valid ContentDispositionHeaderValue information.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICloneable.Clone()

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

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft