FormUrlEncodedContent(IEnumerable<KeyValuePair<String,String>>) 构造函数

定义

使用指定的名称/值对集合初始化 FormUrlEncodedContent 类的新实例。Initializes a new instance of the FormUrlEncodedContent class with a specific collection of name/value pairs.

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

名称/值对的集合。A collection of name/value pairs.

适用于