IHttpSessionState.Remove Method (String)

 

Deletes an item from the session-state item collection.

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

Sub Remove (
	name As String
)

Parameters

name
Type: System.String

The name of the item to delete from the session-state item collection.

The following code example implements the Remove method of the IHttpSessionState interface to delete a session-state item from the session-state item collection by key name.

Public Sub Remove(name As String) Implements IHttpSessionState.Remove    
  pSessionItems.Remove(name)
End Sub

.NET Framework
Available since 2.0
Return to top
Show: