-api-id | -api-type |
---|---|
T:Windows.Web.Http.Headers.HttpContentDispositionHeaderValue |
winrt class |
Represents the value of the Content-Disposition HTTP header on HTTP content in a request or a response.
The HttpContentDispositionHeaderValue class represents information in the Content-Disposition header on HTTP content sent in an HTTP request or received in an HTTP response.
The ContentDisposition property on the HttpContentHeaderCollection returns an HttpContentDispositionHeaderValue.
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:
- A MIME header for nested body content in the HttpMultipartFormDataContent class. For more information, see IETF RFC 2183.
- An HTTP header in HttpContentHeaderCollection class. For more information, see IETF RFC 6266.
See the code example in HttpContentHeaderCollection class.
ContentDisposition, HttpContentHeaderCollection, IStringable