IHttpSessionState.Item Property (Int32)

 

Gets or sets a session-state item value by numerical index.

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

Property Item (
	index As Integer
) As Object

Parameters

index
Type: System.Int32

The numerical index of the session-state item value.

Property Value

Type: System.Object

The session-state item value specified in the index parameter.

The following code example implements the Item property of the IHttpSessionState interface to store and return an internal dictionary session-state item value by numeric index.

Public Property Item(index As Integer) As Object Implements IHttpSessionState.Item    
  Get
    Return pSessionItems(index)
  End Get
  Set
    pSessionItems(index) = value
  End Set
End Property

.NET Framework
Available since 2.0
Return to top
Show: