HttpApplicationState.Remove(String) 方法

定義

HttpApplicationState 集合移除指名的物件。Removes the named object from an HttpApplicationState collection.

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

參數

name
String

要從集合中移除的物件名稱。The name of the object to be removed from the collection.

範例

下列範例會從集合中移除一個應用程式狀態變數。The following example removes one application state variable from the collection.

Application.Remove("MyAppVar1");

Application.Remove("MyAppVar1")

適用於