IHttpSessionState.Keys Property

 

Gets a collection of the keys for all values stored in the session-state item collection.

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

NameObjectCollectionBase.KeysCollection Keys { get; }

The following code example implements the Keys property of the IHttpSessionState interface to return a collection of session-state item key names from the internal session-state item collection.

public NameObjectCollectionBase.KeysCollection Keys
{
  get { return pSessionItems.Keys; }
}

.NET Framework
Available since 2.0
Return to top
Show: