UnvalidatedRequestValuesBase.Item Property (String)

.NET Framework (current version)
 
System_CAPS_noteNote

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

When overridden in a derived class, 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 virtual string this[
	string field
] { get; }

Parameters

field
Type: System.String

The key of the object to retrieve.

Property Value

Type: System.String

The object specified by the field parameter.

Exception Condition
NotImplementedException

The property is not implemented.

Notes to Inheritors:

If you override this property in a derived class, you must manually check the data for potential cross-site scripting attacks.

.NET Framework
Available since 4.5
Return to top
Show: