HttpContentCodingWithQualityHeaderValue HttpContentCodingWithQualityHeaderValue HttpContentCodingWithQualityHeaderValue HttpContentCodingWithQualityHeaderValue Class

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

Syntax

Declaration

public sealed class HttpContentCodingWithQualityHeaderValuepublic sealed class HttpContentCodingWithQualityHeaderValuePublic NotInheritable Class HttpContentCodingWithQualityHeaderValue

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 summary

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

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

Properties summary

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

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

Methods summary

Converts a string to an HttpContentCodingWithQualityHeaderValue instance.

Returns a string that represents the current HttpContentCodingHeaderValue object.

Determines whether a string is valid HttpContentCodingWithQualityHeaderValue information.

Constructors

  • HttpContentCodingWithQualityHeaderValue(System.String)
    HttpContentCodingWithQualityHeaderValue(System.String)
    HttpContentCodingWithQualityHeaderValue(System.String)
    HttpContentCodingWithQualityHeaderValue(System.String)

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

    public HttpContentCodingWithQualityHeaderValue(System.String)public HttpContentCodingWithQualityHeaderValue(System.String)Public Function HttpContentCodingWithQualityHeaderValue(System.String) As

    Parameters

    • contentCoding
      System.String
      System.String
      System.String
      System.String

      The value of the content-coding to use.

  • HttpContentCodingWithQualityHeaderValue(System.String,System.Double)
    HttpContentCodingWithQualityHeaderValue(System.String,System.Double)
    HttpContentCodingWithQualityHeaderValue(System.String,System.Double)
    HttpContentCodingWithQualityHeaderValue(System.String,System.Double)

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

    public HttpContentCodingWithQualityHeaderValue(System.String,System.Double)public HttpContentCodingWithQualityHeaderValue(System.String,System.Double)Public Function HttpContentCodingWithQualityHeaderValue(System.String,System.Double) As

    Parameters

    • contentCoding
      System.String
      System.String
      System.String
      System.String

      The value of the content-coding information to use.

    • quality
      System.Double
      System.Double
      System.Double
      System.Double

      The value of the qvalue to use.

Properties

  • ContentCoding
    ContentCoding
    ContentCoding
    ContentCoding

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

    public string ContentCoding { get; }public string ContentCoding { get; }Public ReadOnly Property ContentCoding As string

    Property Value

    • string
      string
      string
      string

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

  • Quality
    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>

    Property Value

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

Methods

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.StaticAttribute

Details

Assembly

Windows.Web.Http.Headers.dll