共用方式為


HttpTransferCodingHeaderValueCollection 類別

定義

表示 HTTP 要求上 Transfer-Encoding HTTP 標頭的值。

public ref class HttpTransferCodingHeaderValueCollection sealed : IIterable<HttpTransferCodingHeaderValue ^>, IVector<HttpTransferCodingHeaderValue ^>, 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)]
class HttpTransferCodingHeaderValueCollection final : IIterable<HttpTransferCodingHeaderValue>, IVector<HttpTransferCodingHeaderValue>, IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class HttpTransferCodingHeaderValueCollection final : IIterable<HttpTransferCodingHeaderValue>, IVector<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)]
public sealed class HttpTransferCodingHeaderValueCollection : IEnumerable<HttpTransferCodingHeaderValue>, IList<HttpTransferCodingHeaderValue>, IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class HttpTransferCodingHeaderValueCollection : IEnumerable<HttpTransferCodingHeaderValue>, IList<HttpTransferCodingHeaderValue>, IStringable
Public NotInheritable Class HttpTransferCodingHeaderValueCollection
Implements IEnumerable(Of HttpTransferCodingHeaderValue), IList(Of HttpTransferCodingHeaderValue), IStringable
繼承
Object Platform::Object IInspectable HttpTransferCodingHeaderValueCollection
屬性
實作

Windows 需求

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

備註

HttpTransferCodingHeaderValueCollection 代表 HTTP 要求上 Transfer-Encoding HTTP 標頭的值。

HttpTransferCodingHeaderValueCollection 是 HttpTransferCodingHeaderValue 物件的集合,用於傳輸 HTTP Transfer-Encoding 標頭中的編碼資訊。

HttpRequestHeaderCollection上的TransferEncoding屬性會傳回 HttpTransferCodingHeaderValueCollection 物件。

屬性

Size

取得集合中的 HttpTransferCodingHeaderValue 物件數目。

方法

Append(HttpTransferCodingHeaderValue)

將新的 HttpTransferCodingHeaderValue 專案新增至集合結尾。

Clear()

從集合中移除所有物件。

First()

擷取反覆運算器至集合中的第一個 HttpTransferCodingHeaderValue 專案。

GetAt(UInt32)

傳回集合中指定索引處的 HttpTransferCodingHeaderValue

GetMany(UInt32, HttpTransferCodingHeaderValue[])

擷取從集合中指定索引處開始的 HttpTransferCodingHeaderValue 專案。

GetView()

傳回 HttpTransferCodingHeaderValueCollection的不可變檢視。

IndexOf(HttpTransferCodingHeaderValue, UInt32)

擷取集合中 HttpTransferCodingHeaderValue 的索引。

InsertAt(UInt32, HttpTransferCodingHeaderValue)

HttpTransferCodingHeaderValue 插入集合中指定的索引處。

ParseAdd(String)

剖析並新增專案至 HttpTransferCodingHeaderValueCollection

RemoveAt(UInt32)

HttpTransferCodingHeaderValueCollection中移除位於指定索引處的專案。

RemoveAtEnd()

從集合中移除最後一個 HttpTransferCodingHeaderValue 專案。

ReplaceAll(HttpTransferCodingHeaderValue[])

以指定的HttpTransferCodingHeaderValue 專案取代集合中的所有 HttpTransferCodingHeaderValue專案。

SetAt(UInt32, HttpTransferCodingHeaderValue)

在集合中指定的索引處設定 HttpTransferCodingHeaderValue

ToString()

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

TryParseAdd(String)

嘗試剖析並新增指定的專案至 HttpTransferCodingHeaderValueCollection

適用於

另請參閱