HttpContentCodingHeaderValue HttpContentCodingHeaderValue HttpContentCodingHeaderValue HttpContentCodingHeaderValue 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 HttpContentCodingHeaderValuepublic sealed class HttpContentCodingHeaderValuePublic NotInheritable Class HttpContentCodingHeaderValuepublic sealed class HttpContentCodingHeaderValue
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) HttpContentCodingHeaderValue(String)

Initializes a new instance of the HttpContentCodingHeaderValue class.

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

The value of the content-coding to use.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

ContentCoding 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 stringpublic string ContentCoding { get; }
Value
string string string string

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

Parse(String) 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 HttpContentCodingHeaderValuepublic static HttpContentCodingHeaderValue Parse(String input)
Parameters
input
System.String System.String System.String System.String

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

Returns
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

ToString() ToString() ToString() ToString()

Returns a string that represents the current HttpContentCodingHeaderValue object.

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

A string that represents the current object.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

TryParse(String, HttpContentCodingHeaderValue) 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 boolpublic static bool TryParse(String input, HttpContentCodingHeaderValue contentCodingHeaderValue)
Parameters
input
System.String System.String System.String System.String

The string to validate.

Returns
bool bool bool bool

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)