FormUrlEncodedContent 類別

定義

使用 application/x-www-form-urlencoded MIME 類型編碼之名稱/值 Tuple 的容器。A container for name/value tuples encoded using application/x-www-form-urlencoded MIME type.

public ref class FormUrlEncodedContent : System::Net::Http::ByteArrayContent
public class FormUrlEncodedContent : System.Net.Http.ByteArrayContent
type FormUrlEncodedContent = class
    inherit ByteArrayContent
Public Class FormUrlEncodedContent
Inherits ByteArrayContent
繼承
FormUrlEncodedContent

建構函式

FormUrlEncodedContent(IEnumerable<KeyValuePair<String,String>>)

使用特定名稱/值組集合,初始化 FormUrlEncodedContent 類別的新執行個體。Initializes a new instance of the FormUrlEncodedContent class with a specific collection of name/value pairs.

屬性

Headers

取得如 RFC 2616 中定義的 HTTP 內容標頭。Gets the HTTP content headers as defined in RFC 2616.

(繼承來源 HttpContent)

方法

CopyToAsync(Stream)

將 HTTP 內容序列化成位元組資料流,然後複製到 stream 參數所提供的資料流物件。Serialize the HTTP content into a stream of bytes and copies it to the stream object provided as the stream parameter.

(繼承來源 HttpContent)
CopyToAsync(Stream, TransportContext)

將 HTTP 內容序列化成位元組資料流,然後複製到 stream 參數所提供的資料流物件。Serialize the HTTP content into a stream of bytes and copies it to the stream object provided as the stream parameter.

(繼承來源 HttpContent)
CreateContentReadStreamAsync()

以非同步作業方式建立用於讀取的 HTTP 內容資料流,而其備份存放區是 ByteArrayContent 中的記憶體。Creates an HTTP content stream as an asynchronous operation for reading whose backing store is memory from the ByteArrayContent.

(繼承來源 ByteArrayContent)
Dispose()

釋放 Unmanaged 資源,並處置 HttpContent 所使用的 Managed 資源。Releases the unmanaged resources and disposes of the managed resources used by the HttpContent.

(繼承來源 HttpContent)
Dispose(Boolean)

釋放 HttpContent 所使用的 Unmanaged 資源,並選擇性處置 Managed 資源。Releases the unmanaged resources used by the HttpContent and optionally disposes of the managed resources.

(繼承來源 HttpContent)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
LoadIntoBufferAsync()

將 HTTP 內容序列化至記憶體緩衝,做為非同步作業。Serialize the HTTP content to a memory buffer as an asynchronous operation.

(繼承來源 HttpContent)
LoadIntoBufferAsync(Int64)

將 HTTP 內容序列化至記憶體緩衝,做為非同步作業。Serialize the HTTP content to a memory buffer as an asynchronous operation.

(繼承來源 HttpContent)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ReadAsByteArrayAsync()

以非同步作業方式將位元組陣列的 HTTP 內容序列化。Serialize the HTTP content to a byte array as an asynchronous operation.

(繼承來源 HttpContent)
ReadAsStreamAsync()

以非同步作業方式將 HTTP 內容序列化,並傳回代表內容的資料流。Serialize the HTTP content and return a stream that represents the content as an asynchronous operation.

(繼承來源 HttpContent)
ReadAsStringAsync()

以非同步作業方式將 HTTP 內容序列化為字串。Serialize the HTTP content to a string as an asynchronous operation.

(繼承來源 HttpContent)
SerializeToStreamAsync(Stream, TransportContext)

序列化並寫入建構函式中提供的位元組陣列至 HTTP 內容資料流做為非同步作業。Serialize and write the byte array provided in the constructor to an HTTP content stream as an asynchronous operation.

(繼承來源 ByteArrayContent)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
TryComputeLength(Int64)

判斷位元組陣列是否具有有效長度 (以位元組為單位)。Determines whether a byte array has a valid length in bytes.

(繼承來源 ByteArrayContent)

適用於