System.Web.SessionState.ISessionStateItemCollection

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

See Also: ISessionStateItemCollection Members

Syntax

public interface ISessionStateItemCollection : ICollection

Remarks

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.

Requirements

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