Skip to main content
HttpConnectionOptionHeaderValue class

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

Syntax


var httpConnectionOptionHeaderValue = new Windows.Web.Http.Headers.HttpConnectionOptionHeaderValue();

public sealed class HttpConnectionOptionHeaderValue : IStringable

Public NotInheritable Class HttpConnectionOptionHeaderValue
    Implements IStringable

public ref class HttpConnectionOptionHeaderValue sealed : IStringable

Members

The HttpConnectionOptionHeaderValue class has these types of members:

Constructors

The HttpConnectionOptionHeaderValue class has these constructors.

ConstructorDescription
HttpConnectionOptionHeaderValue Initializes a new instance of the HttpConnectionOptionHeaderValue class.

 

Methods

The HttpConnectionOptionHeaderValue class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Parse Converts a string to an HttpConnectionOptionHeaderValue instance.
ToString Returns a string that represents the current HttpConnectionOptionHeaderValue object.
TryParse Determines whether a string is valid HttpConnectionOptionHeaderValue information.

 

Properties

The HttpConnectionOptionHeaderValue class has these properties.

PropertyAccess typeDescription

Token

Read-only

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

 

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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Web.Http.Headers
Windows::Web::Http::Headers [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http.Headers
Windows::Web::Http::Headers [C++]

Metadata

Windows.winmd

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Threading(Both)]
[ Version(0x06030000)]

See also

Connection
HttpConnectionOptionHeaderValueCollection
HttpRequestHeaderCollection
HttpRequestMessage
IStringable
Object