HttpRequest.Item[String] 属性

定义

QueryStringFormCookiesServerVariables 集合获取指定的对象。Gets the specified object from the QueryString, Form, Cookies, or ServerVariables collections.

public:
 property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ key); };
public string this[string key] { get; }
member this.Item(string) : string
Default Public ReadOnly Property Item(key As String) As String

参数

key
String

要获取的集合成员的名称。The name of the collection member to get.

属性值

String

QueryString 参数中指定的 FormCookiesServerVariableskey 集合成员。The QueryString, Form, Cookies, or ServerVariables collection member specified in the key parameter. 如果未找到指定的 key,则返回 nullIf the specified key is not found, then null is returned.

适用于