ValueCollectionParameterReader.Read(NameValueCollection) 方法

定义

将名称/值对的集合转换为表示方法参数值的对象数组。

protected:
 cli::array <System::Object ^> ^ Read(System::Collections::Specialized::NameValueCollection ^ collection);
protected object[] Read (System.Collections.Specialized.NameValueCollection collection);
override this.Read : System.Collections.Specialized.NameValueCollection -> obj[]
Protected Function Read (collection As NameValueCollection) As Object()

参数

collection
NameValueCollection

一个 NameValueCollection 对象,它指定包含方法参数名称和值的名称/值对的集合。

返回

Object[]

一个 Object 对象的数组,表示方法的参数值。

注解

Read方法由 Read 从、和派生的两个类中定义的方法 ValueCollectionParameterReader 调用 UrlParameterReader HtmlFormParameterReader 。 这两个类的 Read 方法采用一个 HttpRequest 参数。

适用于