Sdílet prostřednictvím


ClientTargetCollection.RemoveAt(Int32) Metoda

Definice

Odebere ClientTarget objekt se zadaným indexem kolekce.

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

Parametry

index
Int32

Index kolekce, který ClientTarget chcete odebrat.

Příklady

Následující příklad kódu odebere ClientTarget objekt z ClientTargetCollection kolekce.

Informace o tom, jak získat kolekci, najdete v příkladu kódu v přehledu ClientTargetCollection třídy.


// Remove the client target at the 
// specified index from the collection.
clientTargets.RemoveAt(0);

// Update the configuration file.
if (!clientTargetSection.IsReadOnly())
  configuration.Save();
' Remove the client target at the 
' specified index from the collection.
clientTargets.RemoveAt(0)

' Update the configuration file.
If Not clientTargetSection.IsReadOnly() Then
    configuration.Save()
End If

Poznámky

Metoda RemoveAt odstraní add prvek v oddílu clientTarget na aktuální úrovni hierarchie a vloží remove prvek. Element remove efektivně odebere odkaz na add prvek definovaný v nadřazených konfiguračních souborech na vyšších úrovních v hierarchii, ale neodstraní ho.

Platí pro

Viz také