HttpExpectationHeaderValueCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示 HTTP 请求上的 Expect 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 请求上的 Expect HTTP 标头的值。
HttpExpectationHeaderValueCollection 为用于预期 HTTP 标头中预期信息的 HttpExpectationHeaderValue 类的实例提供收集容器。
HttpRequestHeaderCollection 上的 Expect 属性返回 HttpExpectationHeaderValueCollection 对象。
属性
Size |
获取集合中 HttpExpectationHeaderValue 对象的数目。 |