Dela via


HttpContentCodingWithQualityHeaderValue Class

Definition

Represents accept encoding information used in the Accept-Encoding HTTP header on an HTTP request.

public ref class HttpContentCodingWithQualityHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpContentCodingWithQualityHeaderValueFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpContentCodingWithQualityHeaderValue final : IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpContentCodingWithQualityHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpContentCodingWithQualityHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpContentCodingWithQualityHeaderValueFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpContentCodingWithQualityHeaderValue : IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpContentCodingWithQualityHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpContentCodingWithQualityHeaderValue : IStringable
function HttpContentCodingWithQualityHeaderValue(contentCoding, quality)
Public NotInheritable Class HttpContentCodingWithQualityHeaderValue
Implements IStringable
Inheritance
Object Platform::Object IInspectable HttpContentCodingWithQualityHeaderValue
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

The HttpContentCodingWithQualityHeaderValue class represents accept encoding information used in the Accept-Encoding HTTP header on an HTTP request.

The AcceptEncoding property on the HttpRequestHeaderCollection returns an HttpContentCodingWithQualityHeaderValueCollection that contains HttpContentCodingWithQualityHeaderValue objects.

Constructors

HttpContentCodingWithQualityHeaderValue(String, Double)

Initializes a new instance of the HttpContentCodingHeaderValue class with content-coding information and a qvalue.

HttpContentCodingWithQualityHeaderValue(String)

Initializes a new instance of the HttpContentCodingHeaderValue class with content-coding information.

Properties

ContentCoding

Gets the value of the content-coding characteristic in the Accept-Encoding HTTP header.

Quality

Gets the value of the qvalue attribute in the Accept-Encoding HTTP header.

Methods

Parse(String)

Converts a string to an HttpContentCodingWithQualityHeaderValue instance.

ToString()

Returns a string that represents the current HttpContentCodingHeaderValue object.

TryParse(String, HttpContentCodingWithQualityHeaderValue)

Determines whether a string is valid HttpContentCodingWithQualityHeaderValue information.

Applies to

See also