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>>

一組名稱/值對。

適用於