HttpApplicationState.Remove(String) 方法

定义

从集合中删除命名对象 HttpApplicationState

public:
 void Remove(System::String ^ name);
public void Remove(string name);
member this.Remove : string -> unit
Public Sub Remove (name As String)

参数

name
String

要从集合中删除的对象的名称。

示例

以下示例从集合中删除一个应用程序状态变量。

Application.Remove("MyAppVar1");
Application.Remove("MyAppVar1")

适用于