Export (0) Print
Expand All

IHttpSessionState.RemoveAt Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft