HttpContentCodingWithQualityHeaderValue 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示在 HTTP 请求的 Accept-Encoding 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
- 继承
- 属性
- 实现
Windows 要求
设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
注解
HttpContentCodingWithQualityHeaderValue 类表示 HTTP 请求的 Accept-Encoding HTTP 标头中使用的 accept 编码信息。
HttpRequestHeaderCollection 上的 AcceptEncoding 属性返回包含 HttpContentCodingWithQualityHeaderValue 对象的 HttpContentCodingWithQualityHeaderValueCollection。
构造函数
属性
ContentCoding |
获取 Accept-Encoding HTTP 标头中内容 编码 特征的值。 |
Quality |
获取 Accept-Encoding HTTP 标头中 qvalue 属性的值。 |
方法
Parse(String) |
将字符串转换为 HttpContentCodingWithQualityHeaderValue 实例。 |
ToString() |
返回一个表示当前 HttpContentCodingHeaderValue 对象的字符串。 |
TryParse(String, HttpContentCodingWithQualityHeaderValue) |
确定字符串是否为有效的 HttpContentCodingWithQualityHeaderValue 信息。 |