HttpContentCodingWithQualityHeaderValue Classe

Definizione

Rappresenta le informazioni di codifica accettate utilizzate nell'intestazione HTTP Accept-Encoding in una richiesta HTTP.

public ref class HttpContentCodingWithQualityHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpContentCodingWithQualityHeaderValueFactory, 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 HttpContentCodingWithQualityHeaderValue 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.IHttpContentCodingWithQualityHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpContentCodingWithQualityHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpContentCodingWithQualityHeaderValueFactory), 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 HttpContentCodingWithQualityHeaderValue : 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.IHttpContentCodingWithQualityHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpContentCodingWithQualityHeaderValue : IStringable
function HttpContentCodingWithQualityHeaderValue(contentCoding, quality)
Public NotInheritable Class HttpContentCodingWithQualityHeaderValue
Implements IStringable
Ereditarietà
Object Platform::Object IInspectable HttpContentCodingWithQualityHeaderValue
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 HttpContentCodingWithQualityHeaderValue rappresenta le informazioni di codifica utilizzate nell'intestazione HTTP Accept-Encoding su una richiesta HTTP.

La proprietà AcceptEncoding in HttpRequestHeaderCollection restituisce un oggetto HttpContentCodingWithQualityHeaderValueCollection che contiene oggetti HttpContentCodingWithQualityHeaderValue.

Costruttori

HttpContentCodingWithQualityHeaderValue(String)

Inizializza una nuova istanza della classe HttpContentCodingHeaderValue con informazioni sulla codifica del contenuto .

HttpContentCodingWithQualityHeaderValue(String, Double)

Inizializza una nuova istanza della classe HttpContentCodingHeaderValue con informazioni sulla codifica del contenuto e un qvalue.

Proprietà

ContentCoding

Ottiene il valore della caratteristica content-coding nell'intestazione HTTP Accept-Encoding .

Quality

Ottiene il valore dell'attributo qvalue nell'intestazione HTTP Accept-Encoding .

Metodi

Parse(String)

Converte una stringa in un'istanza HttpContentCodingWithQualityHeaderValue .

ToString()

Restituisce una stringa che rappresenta l'oggetto HttpContentCodingHeaderValue corrente.

TryParse(String, HttpContentCodingWithQualityHeaderValue)

Determina se una stringa è valida per le informazioni HttpContentCodingWithQualityHeaderValue .

Si applica a

Vedi anche