IHttpSessionState.Count プロパティ

定義

セッション状態項目のコレクション内の項目数を取得します。

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

プロパティ値

セッション状態項目のコレクション内の項目数。

次のコード例では、 インターフェイスの プロパティをCountIHttpSessionState実装して、内部セッション状態項目コレクション内の項目の数を返します。

public int Count
{
  get { return pSessionItems.Count; }
}
Public ReadOnly Property Count As Integer Implements IHttpSessionState.Count    
  Get
    Return pSessionItems.Count
  End Get
End Property

適用対象

こちらもご覧ください