HttpRequest.Item Property

Gets the specified object from the Cookies, Form, QueryString or ServerVariables collections.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

Public ReadOnly Default Property Item ( _
	key As String _
) As String
Dim instance As HttpRequest
Dim key As String
Dim value As String

value = instance(key)

/** @property */
public String get_Item (String key)

Not applicable.



The name of the collection member to get.

Property Value

The QueryString, Form, Cookies, or ServerVariables collection member specified in the key parameter. If the specified key is not found, then a null reference (Nothing in Visual Basic) is returned.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0