UnvalidatedRequestValuesWrapper.Item Property (String)

.NET Framework (current version)

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 override 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