共用方式為


FormUrlEncodedContent 建構函式

定義

使用特定名稱/值組集合,初始化 FormUrlEncodedContent 類別的新執行個體。

public:
 FormUrlEncodedContent(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ nameValueCollection);
public FormUrlEncodedContent (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> nameValueCollection);
public FormUrlEncodedContent (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string?,string?>> nameValueCollection);
new System.Net.Http.FormUrlEncodedContent : seq<System.Collections.Generic.KeyValuePair<string, string>> -> System.Net.Http.FormUrlEncodedContent
Public Sub New (nameValueCollection As IEnumerable(Of KeyValuePair(Of String, String)))

參數

nameValueCollection
IEnumerable<KeyValuePair<String,String>>

名稱/值組的集合。

適用於