Udostępnij za pośrednictwem


HttpConnectionOptionHeaderValue Class

Definition

Represents connection information used in the Connection HTTP header on an HTTP request.

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
Inheritance
Object Platform::Object IInspectable HttpConnectionOptionHeaderValue
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

The HttpConnectionOptionHeaderValue class represents connection information used in the Connection HTTP header on an HTTP request.

The Connection property on the HttpRequestHeaderCollection returns an HttpConnectionOptionHeaderValueCollection that contains HttpConnectionOptionHeaderValue objects.

Constructors

HttpConnectionOptionHeaderValue(String)

Initializes a new instance of the HttpConnectionOptionHeaderValue class.

Properties

Token

Gets the value of the connection-token in the Connection HTTP header.

Methods

Parse(String)

Converts a string to an HttpConnectionOptionHeaderValue instance.

ToString()

Returns a string that represents the current HttpConnectionOptionHeaderValue object.

TryParse(String, HttpConnectionOptionHeaderValue)

Determines whether a string is valid HttpConnectionOptionHeaderValue information.

Applies to

See also