SessionStateItemCollection クラス
アセンブリ: System.Web (system.web.dll 内)

Public NotInheritable Class SessionStateItemCollection Inherits NameObjectCollectionBase Implements ISessionStateItemCollection, ICollection, IEnumerable
public sealed class SessionStateItemCollection : NameObjectCollectionBase, ISessionStateItemCollection, ICollection, IEnumerable
public ref class SessionStateItemCollection sealed : public NameObjectCollectionBase, ISessionStateItemCollection, ICollection, IEnumerable

SessionStateItemCollection クラスは、変数名または数値インデックスによってインデックス付けされたセッション状態変数を管理するために使用します。セッション状態変数は、HttpSessionState クラスを使用して ASP.NET アプリケーションのコードに公開されます。このクラスには、現在の HttpContext または Page の Session プロパティを使用してアクセスします。HttpSessionState クラスは、SessionStateItemCollection を使用してセッション状態変数を管理する HttpSessionStateContainer クラスを呼び出します。
実装時の注意 SessionStateStoreProviderBase クラスに基づいてカスタムのセッション状態プロバイダを作成する場合は、SessionStateItemCollection クラスを使用してセッション状態に保存された項目を管理します。セッション状態の項目を管理するためにカスタム オブジェクトを作成する必要がある場合は、ISessionStateItemCollection インターフェイスを実装します。
SessionStateItemCollection オブジェクトを新規作成し、コレクション内の値を名前によって設定および取得するコード例を次に示します。


System.Collections.Specialized.NameObjectCollectionBase
System.Web.SessionState.SessionStateItemCollection


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- SessionStateItemCollection クラスのページへのリンク