IHttpSessionState.Count Property

 

Gets the number of items in the session-state item collection.

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

ReadOnly Property Count As Integer

Property Value

Type: System.Int32

The number of items in the session-state item collection.

The following code example implements the Count property of the IHttpSessionState interface to return the number of items in the internal session-state item collection.

Public ReadOnly Property Count As Integer Implements IHttpSessionState.Count    
  Get
    Return pSessionItems.Count
  End Get
End Property

.NET Framework
Available since 2.0
Return to top
Show: