IHttpSessionState.Add Method (String, Object)

 

Adds a new item to the session-state collection.

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

Sub Add (
	name As String,
	value As Object
)

Parameters

name
Type: System.String

The name of the item to add to the session-state collection.

value
Type: System.Object

The value of the item to add to the session-state collection.

The following code example implements the Add method of the IHttpSessionState interface to add a new item value to the internal session-state item collection.

Public Sub Add(name As String, value As Object) Implements IHttpSessionState.Add    
  pSessionItems(name) = value        
End Sub

.NET Framework
Available since 2.0
Return to top
Show: