Udostępnij za pośrednictwem


HttpMediaTypeWithQualityHeaderValue Constructors

Definition

Overloads

HttpMediaTypeWithQualityHeaderValue(String)

Initializes a new instance of the HttpMediaTypeHeaderValue class with a media type.

HttpMediaTypeWithQualityHeaderValue(String, Double)

Initializes a new instance of the HttpMediaTypeHeaderValue class with a media type and quality.

HttpMediaTypeWithQualityHeaderValue(String)

Initializes a new instance of the HttpMediaTypeHeaderValue class with a media type.

public:
 HttpMediaTypeWithQualityHeaderValue(Platform::String ^ mediaType);
 HttpMediaTypeWithQualityHeaderValue(winrt::hstring const& mediaType);
public HttpMediaTypeWithQualityHeaderValue(string mediaType);
function HttpMediaTypeWithQualityHeaderValue(mediaType)
Public Sub New (mediaType As String)

Parameters

mediaType
String

Platform::String

winrt::hstring

The media-type of the entity-body to accept that is used in the Accept HTTP header.

See also

Applies to

HttpMediaTypeWithQualityHeaderValue(String, Double)

Initializes a new instance of the HttpMediaTypeHeaderValue class with a media type and quality.

public:
 HttpMediaTypeWithQualityHeaderValue(Platform::String ^ mediaType, double quality);
 HttpMediaTypeWithQualityHeaderValue(winrt::hstring const& mediaType, double const& quality);
public HttpMediaTypeWithQualityHeaderValue(string mediaType, double quality);
function HttpMediaTypeWithQualityHeaderValue(mediaType, quality)
Public Sub New (mediaType As String, quality As Double)

Parameters

mediaType
String

Platform::String

winrt::hstring

The media-type of the entity-body to accept that is used in the Accept HTTP header.

quality
Double

double

The qvalue or quality.

See also

Applies to