Export (0) Print
Expand All

HttpApplicationState.Item Property (String)

Gets the value of a single HttpApplicationState object by name.

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

public Object this[
	string name
] { get; set; }

Parameters

name
Type: System.String

The name of the object in the collection.

Property Value

Type: System.Object
The object referenced by name.

The following example returns an object named MyAppVar1 from the HttpApplicationState collection of the intrinsic Application object and copies it to a new object variable.

Object MyObject;
MyObject = Application["MyAppVar1"];

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft