共用方式為


HttpContentCodingHeaderValue 類別

定義

表示要求或回應中 HTTP 內容之 Content-Encoding HTTP 標頭中使用的內容編碼資訊。

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
繼承
Object Platform::Object IInspectable HttpContentCodingHeaderValue
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

HttpContentCodingHeaderValue 類別代表在 HTTP 要求中傳送或 HTTP 回應中傳送之 HTTP 內容之 Content-Encoding HTTP 標頭中使用的內容編碼資訊。

HttpContentHeaderCollection上的ContentEncoding屬性會傳回包含HttpContentCodingHeaderValueCollection 物件的 HttpContentCodingHeaderValueCollection

建構函式

HttpContentCodingHeaderValue(String)

初始化 HttpContentCodingHeaderValue 類別的新實例。

屬性

ContentCoding

取得Content-Encoding HTTP 標頭中使用的內容編碼資訊值。

方法

Parse(String)

將字串轉換成 HttpContentCodingHeaderValue 實例。

ToString()

會傳回代表目前 HttpContentCodingHeaderValue 物件的字串。

TryParse(String, HttpContentCodingHeaderValue)

判斷字串是否為有效的 HttpContentCodingHeaderValue 資訊。

適用於

另請參閱