HttpConnectionOptionHeaderValue 类

定义

表示 HTTP 请求的连接 HTTP 标头中使用的连接信息。

public ref class HttpConnectionOptionHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpConnectionOptionHeaderValueFactory, 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 HttpConnectionOptionHeaderValue 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.IHttpConnectionOptionHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpConnectionOptionHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpConnectionOptionHeaderValueFactory), 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 HttpConnectionOptionHeaderValue : 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.IHttpConnectionOptionHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpConnectionOptionHeaderValue : IStringable
function HttpConnectionOptionHeaderValue(token)
Public NotInheritable Class HttpConnectionOptionHeaderValue
Implements IStringable
继承
Object Platform::Object IInspectable HttpConnectionOptionHeaderValue
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

HttpConnectionOptionHeaderValue 类表示 HTTP 请求的连接 HTTP 标头中使用的连接信息。

HttpRequestHeaderCollection 上的 Connection 属性返回包含 HttpConnectionOptionHeaderValue 对象的 HttpConnectionOptionHeaderValueCollection。

构造函数

HttpConnectionOptionHeaderValue(String)

初始化 HttpConnectionOptionHeaderValue 类的新实例。

属性

Token

获取 Connection HTTP 标头中连接令牌的值。

方法

Parse(String)

将字符串转换为 HttpConnectionOptionHeaderValue 实例。

ToString()

返回表示当前 HttpConnectionOptionHeaderValue 对象的字符串。

TryParse(String, HttpConnectionOptionHeaderValue)

确定字符串是否为有效的 HttpConnectionOptionHeaderValue 信息。

适用于

另请参阅