This documentation is archived and is not being maintained.
HttpApplicationState.Set Method
.NET Framework 1.1
Updates the value of an object in an HttpApplicationState collection.
[Visual Basic] Public Sub Set( _ ByVal name As String, _ ByVal value As Object _ ) [C#] public void Set( string name, object value ); [C++] public: void Set( String* name, Object* value ); [JScript] public function Set( name : String, value : Object );
Parameters
- name
- The name of the object to be updated.
- value
- The updated value of the object.
Example
The following example updates the value of an existing application state variable.
[Visual Basic] Application.Set("MyAppVar1", MyNewObjectValue) [C#] Application.Set("MyAppVar1", MyNewObjectValue); [C++] Application->Set(S"MyAppVar1", MyNewObjectValue); [JScript] Application.Set("MyAppVar1", myNewObjectValue)
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpApplicationState Class | HttpApplicationState Members | System.Web Namespace
Show: