Defines the contract for the collection used by ASP.NET session state to manage session.

See Also: ISessionStateItemCollection Members


public interface ISessionStateItemCollection : ICollection


The System.Web.SessionState.ISessionStateItemCollection interface defines the collection of session items exposed to application code by the System.Web.SessionState.HttpSessionStateContainer class.

The ASP.NET implementation of the System.Web.SessionState.ISessionStateItemCollection interface is the System.Web.SessionState.SessionStateItemCollection class.

If you create a class derived from the System.Web.SessionState.SessionStateStoreProviderBase class to store session data, you can either use the System.Web.SessionState.SessionStateItemCollection class to manage the stored objects or implement the System.Web.SessionState.ISessionStateItemCollection interface on your own collection manager.

If you implement the System.Web.SessionState.ISessionStateItemCollection interface, you must also create a class that inherits the System.Web.SessionState.SessionStateStoreProviderBase class in order to make use of your System.Web.SessionState.ISessionStateItemCollection implementation to manage session variables.

An System.Web.SessionState.ISessionStateItemCollection implementation must also implement the members of the ICollection interface.


Namespace: System.Web.SessionState
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0