IHttpSessionState.RemoveAt(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.