共用方式為


HttpTransferCodingHeaderValue 類別

定義

表示在 HTTP 要求之 Transfer-Encoding HTTP 標頭中使用的傳輸編碼資訊。

public ref class HttpTransferCodingHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpTransferCodingHeaderValueFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpTransferCodingHeaderValue final : IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpTransferCodingHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpTransferCodingHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpTransferCodingHeaderValueFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpTransferCodingHeaderValue : IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpTransferCodingHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpTransferCodingHeaderValue : IStringable
function HttpTransferCodingHeaderValue(input)
Public NotInheritable Class HttpTransferCodingHeaderValue
Implements IStringable
繼承
Object Platform::Object IInspectable HttpTransferCodingHeaderValue
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

HttpTransferCodingHeaderValue 類別代表在 HTTP 要求之 Transfer-Encoding HTTP 標頭中使用的傳輸編碼資訊。

HttpRequestHeaderCollection上的TransferEncoding屬性會傳回HttpTransferCodingHeaderValueCollection,其中包含 HttpTransferCodingHeaderValue物件。

建構函式

HttpTransferCodingHeaderValue(String)

初始化 HttpProductInfoHeaderValue 類別的新實例。

屬性

Parameters

取得 傳輸編碼 HTTP 標頭中使用的一組參數。

Value

取得 Transfer-Encoding HTTP 標頭中使用的傳輸編碼值。

方法

Parse(String)

將字串轉換成 HttpTransferCodingHeaderValue 實例。

ToString()

會傳回代表目前 HttpTransferCodingHeaderValue 物件的字串。

TryParse(String, HttpTransferCodingHeaderValue)

判斷字串是否為有效的 HttpTransferCodingHeaderValue 資訊。

適用於

另請參閱