HttpContentCodingHeaderValue Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Stellt Inhaltscodierungsinformationen dar, die im CONTENT-Encoding-HTTP-Header für HTTP-Inhalte in einer Anforderung oder Antwort verwendet werden.
public ref class HttpContentCodingHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpContentCodingHeaderValueFactory, 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 HttpContentCodingHeaderValue 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.IHttpContentCodingHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpContentCodingHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpContentCodingHeaderValueFactory), 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 HttpContentCodingHeaderValue : 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.IHttpContentCodingHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpContentCodingHeaderValue : IStringable
function HttpContentCodingHeaderValue(contentCoding)
Public NotInheritable Class HttpContentCodingHeaderValue
Implements IStringable
- Vererbung
- Attribute
- Implementiert
Windows-Anforderungen
| Gerätefamilie |
Windows 10 (eingeführt in 10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)
|
Hinweise
Die HttpContentCodingHeaderValue-Klasse stellt Inhaltscodierungsinformationen dar, die im CONTENT-Encoding-HTTP-Header für HTTP-Inhalte verwendet werden, die in einer HTTP-Anforderung gesendet oder in einer HTTP-Antwort empfangen werden.
Die ContentEncoding-Eigenschaft für die HttpContentHeaderCollection gibt eine HttpContentCodingHeaderValueCollection zurück, die HttpContentCodingHeaderValue-Objekte enthält.
Konstruktoren
| HttpContentCodingHeaderValue(String) |
Initialisiert eine neue instance der HttpContentCodingHeaderValue-Klasse. |
Eigenschaften
| ContentCoding |
Ruft den Wert der Inhaltscodierungsinformationen ab, die im CONTENT-Encoding-HTTP-Header verwendet werden. |
Methoden
| Parse(String) |
Konvertiert eine Zeichenfolge in eine HttpContentCodingHeaderValue-instance. |
| ToString() |
Gibt eine Zeichenfolge zurück, die das aktuelle HttpContentCodingHeaderValue-Objekt darstellt. |
| TryParse(String, HttpContentCodingHeaderValue) |
Bestimmt, ob eine Zeichenfolge gültige HttpContentCodingHeaderValue-Informationen ist. |