HttpApplicationState.Set Method (String, Object)

 

Updates the value of an object in an HttpApplicationState collection.

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

public void Set(
	string name,
	object value
)

Parameters

name
Type: System.String

The name of the object to be updated.

value
Type: System.Object

The updated value of the object.

The following example updates the value of an existing application state variable.

Application.Set("MyAppVar1", MyNewObjectValue);

.NET Framework
Available since 1.1
Return to top
Show: