Skip to main content
HttpContentCodingWithQualityHeaderValue class

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

Syntax


var httpContentCodingWithQualityHeaderValue = new Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValue(string);
var httpContentCodingWithQualityHeaderValue = new Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValue(string, double);

public sealed class HttpContentCodingWithQualityHeaderValue : IStringable

Public NotInheritable Class HttpContentCodingWithQualityHeaderValue
    Implements IStringable

public ref class HttpContentCodingWithQualityHeaderValue sealed : IStringable

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Threading(Both)]
[ Version(0x06030000)]

Members

The HttpContentCodingWithQualityHeaderValue class has these types of members:

Constructors

The HttpContentCodingWithQualityHeaderValue class has these constructors.

ConstructorDescription
HttpContentCodingWithQualityHeaderValue(String) Initializes a new instance of the HttpContentCodingHeaderValue class with content-coding information.
HttpContentCodingWithQualityHeaderValue(String, Double) Initializes a new instance of the HttpContentCodingHeaderValue class with content-coding information and a qvalue.

 

Methods

The HttpContentCodingWithQualityHeaderValue class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Parse Converts a string to an HttpContentCodingWithQualityHeaderValue instance.
ToString Returns a string that represents the current HttpContentCodingHeaderValue object.
TryParse Determines whether a string is valid HttpContentCodingWithQualityHeaderValue information.

 

Properties

The HttpContentCodingWithQualityHeaderValue class has these properties.

PropertyAccess typeDescription

ContentCoding

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

Quality

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

 

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.

Requirements ( device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

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

AcceptEncoding
HttpContentCodingWithQualityHeaderValueCollection
HttpRequestHeaderCollection
HttpRequestMessage
IStringable
Object