HttpRequest.Item[String] 属性
定义
从 QueryString、Form、Cookies 或 ServerVariables 集合获取指定的对象。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.
属性值
QueryString 参数中指定的 Form、Cookies、ServerVariables 或 key
集合成员。The QueryString, Form, Cookies, or ServerVariables collection member specified in the key
parameter. 如果未找到指定的 key
,则返回 null
。If the specified key
is not found, then null
is returned.