IHttpSessionState.Count 屬性

定義

取得工作階段狀態項目集合中的項目數目。

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

屬性值

Int32

工作階段狀態項目集合中的項目數目。

範例

下列程式碼範例會 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

適用於

另請參閱