Http​Content​Coding​With​Quality​Header​Value Http​Content​Coding​With​Quality​Header​Value Http​Content​Coding​With​Quality​Header​Value Class

Definition

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

public sealed class HttpContentCodingWithQualityHeaderValue : IStringable, IHttpContentCodingWithQualityHeaderValuepublic sealed class HttpContentCodingWithQualityHeaderValue : IStringable, IHttpContentCodingWithQualityHeaderValuePublic NotInheritable Class HttpContentCodingWithQualityHeaderValue Implements IStringable, IHttpContentCodingWithQualityHeaderValue
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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) HttpContentCodingWithQualityHeaderValue(String) HttpContentCodingWithQualityHeaderValue(String)

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

public HttpContentCodingWithQualityHeaderValue(String contentCoding)public HttpContentCodingWithQualityHeaderValue(String contentCoding)Public Sub New(contentCoding As String)
Parameters
contentCoding
System.String System.String System.String

The value of the content-coding to use.

Attributes

HttpContentCodingWithQualityHeaderValue(String, Double) HttpContentCodingWithQualityHeaderValue(String, Double) HttpContentCodingWithQualityHeaderValue(String, Double)

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

public HttpContentCodingWithQualityHeaderValue(String contentCoding, Double quality)public HttpContentCodingWithQualityHeaderValue(String contentCoding, Double quality)Public Sub New(contentCoding As String, quality As Double)
Parameters
contentCoding
System.String System.String System.String

The value of the content-coding information to use.

quality
System.Double System.Double System.Double

The value of the qvalue to use.

Attributes

Properties

ContentCoding ContentCoding ContentCoding

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

public PlatForm::String ContentCoding { get; }public string ContentCoding { get; }Public ReadOnly Property ContentCoding As string
Value
string string string

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

Attributes

Quality Quality Quality

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

public IReference<double> Quality { get; }public IReference<double> Quality { get; }Public ReadOnly Property Quality As IReference<double>
Value

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

Attributes

Methods

Parse(String) Parse(String) Parse(String)

Converts a string to an HttpContentCodingWithQualityHeaderValue instance.

public static HttpContentCodingWithQualityHeaderValue Parse(String input)public static HttpContentCodingWithQualityHeaderValue Parse(String input)Public Static Function Parse(input As String) As HttpContentCodingWithQualityHeaderValue
Parameters
input
System.String System.String System.String

A string that represents the content coding information in the Accept-Encoding HTTP header.

Returns
Attributes

ToString() ToString() ToString()

Returns a string that represents the current HttpContentCodingHeaderValue object.

public PlatForm::String ToString()public string ToString()Public Function ToString() As string
Returns
string string string

A string that represents the current object.

Attributes

TryParse(String, HttpContentCodingWithQualityHeaderValue) TryParse(String, HttpContentCodingWithQualityHeaderValue) TryParse(String, HttpContentCodingWithQualityHeaderValue)

Determines whether a string is valid HttpContentCodingWithQualityHeaderValue information.

public static PlatForm::Boolean TryParse(String input, HttpContentCodingWithQualityHeaderValue contentCodingWithQualityHeaderValue)public static bool TryParse(String input, HttpContentCodingWithQualityHeaderValue contentCodingWithQualityHeaderValue)Public Static Function TryParse(input As String, contentCodingWithQualityHeaderValue As HttpContentCodingWithQualityHeaderValue) As bool
Parameters
input
System.String System.String System.String

The string to validate.

Returns
bool bool bool

true if input is valid HttpContentCodingWithQualityHeaderValue information; otherwise, false.

Attributes