Skip to main content
HttpContentDispositionHeaderValue.DispositionType | dispositionType property

Applies to Windows and Windows Phone

Gets or sets the value of the disposition-type information in the Content-Disposition HTTP header.

Syntax


var dispositionType = httpContentDispositionHeaderValue.dispositionType;
httpContentDispositionHeaderValue.dispositionType = dispositionType;

public string DispositionType { get; set; }

Public Property DispositionType As String

public:
property String^ DispositionType { 
   String^ get();
   void set (String^ value);
}

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The value of the disposition-type characteristic in the Content-Disposition HTTP header.

Remarks

The DispositionType property represents the disposition type for a content body part.

A body part should be marked with a DispositionType property of "inline" if it is intended to be displayed automatically upon display of the message. A body part can be designated with a DispositionType property of "attachment" to indicate that they are separate from the main body of the HTTP request or response.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http.Headers
Windows::Web::Http::Headers [C++]

Metadata

Windows.winmd

See also

HttpContentDispositionHeaderValue