SessionStateItemCollection.Remove Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Deletes an item from the collection.

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

public void Remove(
	string name
)

Parameters

name
Type: System.String

The name of the item to delete from the collection.

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

.NET Framework
Available since 2.0
Return to top
Show: