Http​Content​Coding​Header​Value Http​Content​Coding​Header​Value Http​Content​Coding​Header​Value Class

Definition

Represents content encoding information used in the Content-Encoding HTTP header on HTTP content in a request or a response.

public sealed class HttpContentCodingHeaderValue : IStringable, IHttpContentCodingHeaderValuepublic sealed class HttpContentCodingHeaderValue : IStringable, IHttpContentCodingHeaderValuePublic NotInheritable Class HttpContentCodingHeaderValue Implements IStringable, IHttpContentCodingHeaderValue
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The HttpContentCodingHeaderValue class represents content encoding information used in the Content-Encoding HTTP header on HTTP content sent in an HTTP request or received in an HTTP response.

The ContentEncoding property on the HttpContentHeaderCollection returns an HttpContentCodingHeaderValueCollection that contains HttpContentCodingHeaderValue objects.

Constructors

HttpContentCodingHeaderValue(String) HttpContentCodingHeaderValue(String) HttpContentCodingHeaderValue(String)

Initializes a new instance of the HttpContentCodingHeaderValue class.

public HttpContentCodingHeaderValue(String contentCoding)public HttpContentCodingHeaderValue(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

Properties

ContentCoding ContentCoding ContentCoding

Gets the value of the content-coding information used in the Content-Encoding HTTP header.

public 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 Content-Encoding HTTP header.

Attributes

Methods

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

Converts a string to an HttpContentCodingHeaderValue instance.

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

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

Returns
Attributes

ToString() ToString() ToString()

Returns a string that represents the current HttpContentCodingHeaderValue object.

public string ToString()public string ToString()Public Function ToString() As string
Returns
string string string

A string that represents the current object.

Attributes

TryParse(String, HttpContentCodingHeaderValue) TryParse(String, HttpContentCodingHeaderValue) TryParse(String, HttpContentCodingHeaderValue)

Determines whether a string is valid HttpContentCodingHeaderValue information.

public static bool TryParse(String input, HttpContentCodingHeaderValue contentCodingHeaderValue)public static bool TryParse(String input, HttpContentCodingHeaderValue contentCodingHeaderValue)Public Static Function TryParse(input As String, contentCodingHeaderValue As HttpContentCodingHeaderValue) As bool
Parameters
input
System.String System.String System.String

The string to validate.

Returns
bool bool bool

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

Attributes