IHttpSessionState.Count 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得會話狀態物品集合中的項目數量。
public:
property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer
屬性值
會話狀態項目集合中的項目數量。
範例
以下程式碼範例實 Count 作了介面回 IHttpSessionState 傳內部會話狀態項目集合中項目數量的特性。
public int Count
{
get { return pSessionItems.Count; }
}
Public ReadOnly Property Count As Integer Implements IHttpSessionState.Count
Get
Return pSessionItems.Count
End Get
End Property