Επεξεργασία

Κοινή χρήση μέσω


IHttpSessionState.RemoveAt(Int32) Method

Definition

Deletes an item at a specified index from the session-state item collection.

public:
 void RemoveAt(int index);
public void RemoveAt (int index);
abstract member RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

Parameters

index
Int32

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

Examples

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);
}
Public Sub RemoveAt(index As Integer) Implements IHttpSessionState.RemoveAt    
  pSessionItems.RemoveAt(index)
End Sub

Applies to

See also