HttpApplicationState.Get Method (String)


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

Gets an HttpApplicationState object by name.

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

public object Get(
	string name


Type: System.String

The name of the object.

Return 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.Get("MyAppVar1");

.NET Framework
Available since 1.1
Return to top