UnvalidatedRequestValues.Item Property (String)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the specified object from the Form, Cookies, QueryString, or ServerVariables collection, without triggering ASP.NET request validation.

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

public string this[
	string field
] { get; }


Type: System.String

The key of the object to retrieve.

Property Value

Type: System.String

The requested object, or null if the object is not found.

System_CAPS_security Security Note

If you use this property, you must manually check the data for potential cross-site scripting attacks.

.NET Framework
Available since 4.5
Return to top