This documentation is archived and is not being maintained.

HttpApplicationState.Remove Method

Removes the named object from an HttpApplicationState collection.

[Visual Basic]
Public Sub Remove( _
   ByVal name As String _
)
[C#]
public void Remove(
 string name
);
[C++]
public: void Remove(
 String* name
);
[JScript]
public function Remove(
   name : String
);

Parameters

name
The name of the object to be removed from the collection.

Example

The following example removes one application state variable from the collection.

[Visual Basic] 
Application.Remove("MyAppVar1")
   

[C#] 
Application.Remove("MyAppVar1");
   

[C++] 
Application->Remove(S"MyAppVar1");
   

[JScript] 
Application.Remove("MyAppVar1")

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpApplicationState Class | HttpApplicationState Members | System.Web Namespace

Show: