HttpExpectationHeaderValueCollection 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示 HTTP 要求上 預期 HTTP 標頭的值。
public ref class HttpExpectationHeaderValueCollection sealed : IIterable<HttpExpectationHeaderValue ^>, IVector<HttpExpectationHeaderValue ^>, 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 HttpExpectationHeaderValueCollection final : IIterable<HttpExpectationHeaderValue>, IVector<HttpExpectationHeaderValue>, IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class HttpExpectationHeaderValueCollection final : IIterable<HttpExpectationHeaderValue>, IVector<HttpExpectationHeaderValue>, 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 HttpExpectationHeaderValueCollection : IEnumerable<HttpExpectationHeaderValue>, IList<HttpExpectationHeaderValue>, IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class HttpExpectationHeaderValueCollection : IEnumerable<HttpExpectationHeaderValue>, IList<HttpExpectationHeaderValue>, IStringable
Public NotInheritable Class HttpExpectationHeaderValueCollection
Implements IEnumerable(Of HttpExpectationHeaderValue), IList(Of HttpExpectationHeaderValue), IStringable
- 繼承
- 屬性
- 實作
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
備註
HttpExpectationHeaderValueCollection 類別代表 HTTP 要求上 預期 HTTP 標頭的值。
HttpExpectationHeaderValueCollection 會針對預期HTTP 標頭中用於預期資訊的HttpExpectationHeaderValue類別實例提供集合容器。
HttpRequestHeaderCollection上的Expect屬性會傳回 HttpExpectationHeaderValueCollection 物件。
屬性
Size |
取得集合中的 HttpExpectationHeaderValue 物件數目。 |