Aracılığıyla paylaş


IHttpSessionState.RemoveAt(Int32) Yöntem

Tanım

Belirtilen dizindeki bir öğeyi oturum durumu öğe koleksiyonundan siler.

public:
 void RemoveAt(int index);
public void RemoveAt (int index);
abstract member RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

Parametreler

index
Int32

Oturum durumu koleksiyonundan kaldırılacak öğenin dizini.

Örnekler

Aşağıdaki kod örneği, sayısal dizine göre iç oturum durumu öğesi koleksiyonundan bir oturum durumu öğesini silmek için arabiriminin yöntemini IHttpSessionState uygularRemoveAt.

public void RemoveAt(int index)
{
  pSessionItems.RemoveAt(index);
}
Public Sub RemoveAt(index As Integer) Implements IHttpSessionState.RemoveAt    
  pSessionItems.RemoveAt(index)
End Sub

Şunlara uygulanır

Ayrıca bkz.