共用方式為


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 資訊。

適用於

另請參閱