IHttpSessionState.Keys Property
.NET Framework (current version)
Gets a collection of the keys for all values stored in the session-state item collection.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System.Collections.Specialized.NameObjectCollectionBase.KeysCollectionThe NameObjectCollectionBase.KeysCollection that contains all the session-item keys.
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: