HttpConnectionOptionHeaderValue Classe

Definizione

Rappresenta le informazioni di connessione utilizzate nell'intestazione HTTP di connessione in una richiesta 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
Ereditarietà
Object Platform::Object IInspectable HttpConnectionOptionHeaderValue
Attributi
Implementazioni

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Commenti

La classe HttpConnectionOptionHeaderValue rappresenta le informazioni di connessione utilizzate nell'intestazione HTTP connection su una richiesta HTTP.

La proprietà Connection in HttpRequestHeaderCollection restituisce un oggetto HttpConnectionOptionHeaderValueCollection che contiene oggetti HttpConnectionOptionHeaderValue.

Costruttori

HttpConnectionOptionHeaderValue(String)

Inizializza una nuova istanza della classe HttpConnectionOptionHeaderValue .

Proprietà

Token

Ottiene il valore del token di connessione nell'intestazione HTTP connessione .

Metodi

Parse(String)

Converte una stringa in un'istanza httpConnectionOptionHeaderValue .

ToString()

Restituisce una stringa che rappresenta l'oggetto HttpConnectionOptionHeaderValue corrente.

TryParse(String, HttpConnectionOptionHeaderValue)

Determina se una stringa è valida per le informazioni HttpConnectionOptionHeaderValue .

Si applica a

Vedi anche