HttpConnectionOptionHeaderValue
HttpConnectionOptionHeaderValue
HttpConnectionOptionHeaderValue
HttpConnectionOptionHeaderValue
Class
Definition
Represents connection information used in the Connection HTTP header on an HTTP request.
public : sealed class HttpConnectionOptionHeaderValue : IStringable, IHttpConnectionOptionHeaderValuepublic sealed class HttpConnectionOptionHeaderValue : IStringable, IHttpConnectionOptionHeaderValuePublic NotInheritable Class HttpConnectionOptionHeaderValue Implements IStringable, IHttpConnectionOptionHeaderValue// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
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) HttpConnectionOptionHeaderValue(String) HttpConnectionOptionHeaderValue(String) HttpConnectionOptionHeaderValue(String)
Initializes a new instance of the HttpConnectionOptionHeaderValue class.
public : HttpConnectionOptionHeaderValue(PlatForm::String token)public HttpConnectionOptionHeaderValue(String token)Public Sub New(token As String)// You can use this method in JavaScript.
- token
- PlatForm::String String String String
The value of the connection-token to use.
Properties
Token Token Token Token
Gets the value of the connection-token in the Connection HTTP header.
public : PlatForm::String Token { get; }public string Token { get; }Public ReadOnly Property Token As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The value of the connection-token in the Connection HTTP header.
Methods
Parse(String) Parse(String) Parse(String) Parse(String)
Converts a string to an HttpConnectionOptionHeaderValue instance.
public : static HttpConnectionOptionHeaderValue Parse(PlatForm::String input)public static HttpConnectionOptionHeaderValue Parse(String input)Public Static Function Parse(input As String) As HttpConnectionOptionHeaderValue// You can use this method in JavaScript.
- input
- PlatForm::String String String String
A string that represents the connection information in the Connection HTTP header.
An HttpConnectionOptionHeaderValue instance.
Remarks
Below are exceptions that this function throws.
E_INVALIDARG
The input parameter is null (Nothing in Visual Basic).
The input parameter is not valid connection header information.
ToString() ToString() ToString() ToString()
Returns a string that represents the current HttpConnectionOptionHeaderValue object.
public : PlatForm::String ToString()public string ToString()Public Function ToString() As string// You can use this method in JavaScript.
A string that represents the current object.
TryParse(String, HttpConnectionOptionHeaderValue) TryParse(String, HttpConnectionOptionHeaderValue) TryParse(String, HttpConnectionOptionHeaderValue) TryParse(String, HttpConnectionOptionHeaderValue)
Determines whether a string is valid HttpConnectionOptionHeaderValue information.
public : static PlatForm::Boolean TryParse(PlatForm::String input, HttpConnectionOptionHeaderValue connectionOptionHeaderValue)public static bool TryParse(String input, HttpConnectionOptionHeaderValue connectionOptionHeaderValue)Public Static Function TryParse(input As String, connectionOptionHeaderValue As HttpConnectionOptionHeaderValue) As bool// You can use this method in JavaScript.
- input
- PlatForm::String String String String
The string to validate.
- connectionOptionHeaderValue
- HttpConnectionOptionHeaderValue HttpConnectionOptionHeaderValue HttpConnectionOptionHeaderValue HttpConnectionOptionHeaderValue
The HttpConnectionOptionHeaderValue version of the string.
true if input is valid HttpConnectionOptionHeaderValue information; otherwise, false.