MediaTypeHeaderValue::MediaType Property

.NET Framework (current version)
 

Gets or sets the media-type header value.

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

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

Property Value

Type: System::String^

The media-type header value.

The media-type is used in the Content-Type and Accept header fields in order to provide open and extensible data typing and type negotiation.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: