HttpFormUrlEncodedContent 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 HTTP 內容,其使用 以 application/x-www-form-urlencoded MIME 類型編碼的名稱/值資料。
public ref class HttpFormUrlEncodedContent sealed : IClosable, IStringable, IHttpContent
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.IHttpFormUrlEncodedContentFactory, 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 HttpFormUrlEncodedContent final : IClosable, IStringable, IHttpContent
/// [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.IHttpFormUrlEncodedContentFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpFormUrlEncodedContent final : IClosable, IStringable, IHttpContent
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.IHttpFormUrlEncodedContentFactory), 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 HttpFormUrlEncodedContent : System.IDisposable, IStringable, IHttpContent
[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.IHttpFormUrlEncodedContentFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpFormUrlEncodedContent : System.IDisposable, IStringable, IHttpContent
function HttpFormUrlEncodedContent(content)
Public NotInheritable Class HttpFormUrlEncodedContent
Implements IDisposable, IHttpContent, IStringable
- 繼承
- 屬性
- 實作
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
建構函式
HttpFormUrlEncodedContent(IIterable<KeyValuePair<String,String>>) |
使用指定的內容,初始化 HttpFormUrlEncodedContent 類別的新實例。 |
屬性
Headers |
取得 在 HttpFormUrlEncodedContent上設定的內容標頭集合。 |
方法
BufferAllAsync() |
將 HttpFormUrlEncodedContent 序列化為非同步作業的記憶體。 |
Close() |
關閉 HttpFormUrlEncodedContent 實例,並釋放已配置的資源。 |
Dispose() |
執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。 |
ReadAsBufferAsync() |
將 HttpFormUrlEncodedContent 序列化為非同步作業的緩衝區。 |
ReadAsInputStreamAsync() |
序列化 HttpFormUrlEncodedContent ,並傳回以非同步動作表示內容的輸入資料流程。 |
ReadAsStringAsync() |
將 HttpFormUrlEncodedContent 序列化為 字串 做為非同步作業。 |
ToString() |
會傳回代表目前 HttpFormUrlEncodedContent 物件的字串。 |
TryComputeLength(UInt64) |
以位元組為單位計算 HttpFormUrlEncodedContent 長度。 |
WriteToStreamAsync(IOutputStream) |
將 HttpFormUrlEncodedContent 寫入輸出資料流程做為非同步作業。 |