IHttpSessionState.RemoveAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從會話狀態的項目集合中刪除指定索引的項目。
public:
void RemoveAt(int index);
public void RemoveAt(int index);
abstract member RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)
參數
- index
- Int32
要從 session-state 集合中移除的項目索引。
範例
以下程式碼範例實RemoveAtIHttpSessionState作了介面中透過數值索引刪除內部會話狀態項目集合中會話狀態項目的方法。
public void RemoveAt(int index)
{
pSessionItems.RemoveAt(index);
}
Public Sub RemoveAt(index As Integer) Implements IHttpSessionState.RemoveAt
pSessionItems.RemoveAt(index)
End Sub