Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpApplicationState.Get Method (Int32)

Gets an HttpApplicationState object by numerical index.

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

public Object Get(
	int index


Type: System.Int32

The index of the application state object.

Return Value

Type: System.Object
The object referenced by index.

The following example returns the first object (index = 0) from the HttpApplicationState collection of the intrinsic Application object and copies it to a new object variable.

Object MyObject;
MyObject = Application.Get(0);

.NET Framework

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