System.Web.HttpApplicationState.Get Method

Gets an System.Web.HttpApplicationState object by name.

Syntax

public object Get (string name)

Parameters

name
The name of the object.

Returns

The object referenced by name.

Remarks

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

Example

Dim MyObject As Object
MyObject = Application.Get("MyAppVar1")

Example

Object MyObject;
MyObject = Application.Get("MyAppVar1");

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0