IHttpSessionState.Count Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

int Count { get; }

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 int Count
{
  get { return pSessionItems.Count; }
}

.NET Framework
Available since 2.0
Return to top
Show: