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 HttpContentCodingHeaderValue : IStringable, IHttpContentCodingHeaderValuepublic sealed class HttpContentCodingHeaderValue : IStringable, IHttpContentCodingHeaderValuePublic NotInheritable Class HttpContentCodingHeaderValue Implements IStringable, IHttpContentCodingHeaderValue// You can use this class in JavaScript.
- Attributes
| 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(PlatForm::String contentCoding)public HttpContentCodingHeaderValue(String contentCoding)Public Sub New(contentCoding As String)// You can use this method in JavaScript.
- contentCoding
- PlatForm::String String String String
The value of the content-coding to use.
Properties
ContentCoding ContentCoding ContentCoding ContentCoding
Gets the value of the content-coding information used in the Content-Encoding HTTP header.
public : PlatForm::String ContentCoding { get; }public string ContentCoding { get; }Public ReadOnly Property ContentCoding As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The value of the content-coding characteristic in the Content-Encoding HTTP header.
Methods
Parse(String) Parse(String) Parse(String) Parse(String)
Converts a string to an HttpContentCodingHeaderValue instance.
public : static HttpContentCodingHeaderValue Parse(PlatForm::String input)public static HttpContentCodingHeaderValue Parse(String input)Public Static Function Parse(input As String) As HttpContentCodingHeaderValue// You can use this method in JavaScript.
- input
- PlatForm::String String String String
A string that represents the content coding information in the Content-Encoding HTTP header.
An HttpContentCodingHeaderValue instance.
Remarks
Below are the exceptions that this function throws.
E_INVALIDARG
The input parameter is null (Nothing in Visual Basic).
The input parameter is not valid content coding information.
ToString() ToString() ToString() ToString()
Returns a string that represents the current HttpContentCodingHeaderValue object.
public : PlatForm::String ToString()public string ToString()Public Function ToString() As string// You can use this method in JavaScript.
A string that represents the current object.
TryParse(String, HttpContentCodingHeaderValue) TryParse(String, HttpContentCodingHeaderValue) TryParse(String, HttpContentCodingHeaderValue) TryParse(String, HttpContentCodingHeaderValue)
Determines whether a string is valid HttpContentCodingHeaderValue information.
public : static PlatForm::Boolean TryParse(PlatForm::String input, HttpContentCodingHeaderValue contentCodingHeaderValue)public static bool TryParse(String input, HttpContentCodingHeaderValue contentCodingHeaderValue)Public Static Function TryParse(input As String, contentCodingHeaderValue As HttpContentCodingHeaderValue) As bool// You can use this method in JavaScript.
- input
- PlatForm::String String String String
The string to validate.
- contentCodingHeaderValue
- HttpContentCodingHeaderValue HttpContentCodingHeaderValue HttpContentCodingHeaderValue HttpContentCodingHeaderValue
The HttpContentCodingHeaderValue version of the string.
true if input is valid HttpContentCodingHeaderValue information; otherwise, false.