HttpTransferCodingHeaderValue HttpTransferCodingHeaderValue HttpTransferCodingHeaderValue HttpTransferCodingHeaderValue Class

Definition

Represents transfer coding information used in the Transfer-Encoding HTTP header on an HTTP request.

public : sealed class HttpTransferCodingHeaderValue : IStringable, IHttpTransferCodingHeaderValuepublic sealed class HttpTransferCodingHeaderValue : IStringable, IHttpTransferCodingHeaderValuePublic NotInheritable Class HttpTransferCodingHeaderValue Implements IStringable, IHttpTransferCodingHeaderValue// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The HttpTransferCodingHeaderValue class represents transfer coding information used in the Transfer-Encoding HTTP header on an HTTP request.

The TransferEncoding property on the HttpRequestHeaderCollection returns an HttpTransferCodingHeaderValueCollection that contains HttpTransferCodingHeaderValue objects.

Constructors

HttpTransferCodingHeaderValue(String) HttpTransferCodingHeaderValue(String) HttpTransferCodingHeaderValue(String) HttpTransferCodingHeaderValue(String)

Initializes a new instance of the HttpProductInfoHeaderValue class.

public : HttpTransferCodingHeaderValue(PlatForm::String input)public HttpTransferCodingHeaderValue(String input)Public Sub New(input As String)// You can use this method in JavaScript.
Parameters
input
PlatForm::String String String String

The transfer-coding information to initialize the HttpProductInfoHeaderValue object.

Properties

Parameters Parameters Parameters Parameters

Gets a set of parameters used in the Transfer-Encoding HTTP header.

public : IVector<HttpNameValueHeaderValue> Parameters { get; }public IList<HttpNameValueHeaderValue> Parameters { get; }Public ReadOnly Property Parameters As IList<HttpNameValueHeaderValue>// You can use this property in JavaScript.
Value
IVector<HttpNameValueHeaderValue> IList<HttpNameValueHeaderValue> IList<HttpNameValueHeaderValue> IList<HttpNameValueHeaderValue>

A set of name/value parameters used in the Transfer-Encoding HTTP header.

Value Value Value Value

Gets the transfer-coding value used in the Transfer-Encoding HTTP header.

public : PlatForm::String Value { get; }public string Value { get; }Public ReadOnly Property Value As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The transfer-coding value (transfer-coding name) used in the Transfer-Encoding HTTP header.

Remarks

All transfer-coding names are case-insensitive and ought to be registered within the HTTP Transfer Coding registry.

For the list of registered transfer-coding values, see Hypertext Transfer Protocol (HTTP) Parameters .

Methods

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

Converts a string to an HttpTransferCodingHeaderValue instance.

public : static HttpTransferCodingHeaderValue Parse(PlatForm::String input)public static HttpTransferCodingHeaderValue Parse(String input)Public Static Function Parse(input As String) As HttpTransferCodingHeaderValue// You can use this method in JavaScript.
Parameters
input
PlatForm::String String String String

A string that represents the transfer-coding information.

Returns

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 transfer-coding information.

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

Returns a string that represents the current HttpTransferCodingHeaderValue object.

public : PlatForm::String ToString()public string ToString()Public Function ToString() As string// You can use this method in JavaScript.
Returns
PlatForm::String string string string

A string that represents the current object.

TryParse(String, HttpTransferCodingHeaderValue) TryParse(String, HttpTransferCodingHeaderValue) TryParse(String, HttpTransferCodingHeaderValue) TryParse(String, HttpTransferCodingHeaderValue)

Determines whether a string is valid HttpTransferCodingHeaderValue information.

public : static PlatForm::Boolean TryParse(PlatForm::String input, HttpTransferCodingHeaderValue transferCodingHeaderValue)public static bool TryParse(String input, HttpTransferCodingHeaderValue transferCodingHeaderValue)Public Static Function TryParse(input As String, transferCodingHeaderValue As HttpTransferCodingHeaderValue) As bool// You can use this method in JavaScript.
Parameters
input
PlatForm::String String String String

The string to validate.

Returns
PlatForm::Boolean bool bool bool

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