Compartir a través de


HttpConnectionOptionHeaderValue Clase

Definición

Representa la información de conexión utilizada en el encabezado HTTP de conexión en una solicitud 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
Herencia
Object Platform::Object IInspectable HttpConnectionOptionHeaderValue
Atributos
Implementaciones

Requisitos de Windows

Familia de dispositivos
Windows 10 (se introdujo en la versión 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v1.0)

Comentarios

La clase HttpConnectionOptionHeaderValue representa la información de conexión utilizada en el encabezado HTTP de conexión en una solicitud HTTP.

La propiedad Connection de HttpRequestHeaderCollection devuelve un objeto HttpConnectionOptionHeaderValueCollection que contiene objetos HttpConnectionOptionHeaderValue.

Constructores

HttpConnectionOptionHeaderValue(String)

Inicializa una nueva instancia de la clase HttpConnectionOptionHeaderValue .

Propiedades

Token

Obtiene el valor del token de conexión en el encabezado HTTP de conexión .

Métodos

Parse(String)

Convierte una cadena en una instancia de HttpConnectionOptionHeaderValue .

ToString()

Devuelve una cadena que representa el objeto HttpConnectionOptionHeaderValue actual.

TryParse(String, HttpConnectionOptionHeaderValue)

Determina si una cadena es información válida de HttpConnectionOptionHeaderValue .

Se aplica a

Consulte también