System.Web.SessionState.ISessionStateItemCollection.RemoveAt Method

Deletes an item at a specified index from the collection.

Syntax

public void RemoveAt (int index)

Parameters

index
The index of the item to remove from the collection.

Remarks

In implementing the ISessionStateItemCollection.RemoveAt(int) method, you should set the ISessionStateItemCollection.Dirty property to true to indicate values in the System.Web.SessionState.ISessionStateItemCollection implementation have been modified.

Your implementation of the ISessionStateItemCollection.RemoveAt(int) method should throw an ArgumentOutOfRangeException exception if index is less than zero or is equal to or greater than ICollection.Count.

Requirements

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