IHttpSessionState.RemoveAt Method (Int32)

 
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 at a specified index from the session-state item collection.

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

void RemoveAt(
	int index
)

Parameters

index
Type: System.Int32

The index of the item to remove from the session-state collection.

The following code example implements the RemoveAt method of the IHttpSessionState interface to delete a session-state item from the internal session-state item collection by numerical index.

public void RemoveAt(int index)
{
  pSessionItems.RemoveAt(index);
}

.NET Framework
Available since 2.0
Return to top
Show: