System.Web.SessionState.SessionStateItemCollection.Remove Method

Deletes an item from the collection.

Syntax

public void Remove (string name)

Parameters

name
The name of the item to delete from the collection.

Remarks

If the System.Web.SessionState.SessionStateItemCollection collection does not contain an element with the specified name, the collection remains unchanged. No exception is thrown.

Requirements

Namespace: System.Web.SessionState
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0