FormatterContext.ContentType Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the HTTP Content-Type of the request or response associated with the context.

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

Syntax

'Declaration
Public Property ContentType As MediaTypeHeaderValue
public MediaTypeHeaderValue ContentType { get; private set; }
public:
property MediaTypeHeaderValue^ ContentType {
    MediaTypeHeaderValue^ get ();
    private: void set (MediaTypeHeaderValue^ value);
}
member ContentType : MediaTypeHeaderValue with get, private set
function get ContentType () : MediaTypeHeaderValue
private function set ContentType (value : MediaTypeHeaderValue)

Property Value

Type: System.Net.Http.Headers.MediaTypeHeaderValue

.NET Framework Security

See Also

Reference

FormatterContext Class

System.Net.Http.Formatting Namespace