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

名称/值对的集合。

适用于