Aracılığıyla paylaş


ClientTargetCollection.RemoveAt(Int32) Yöntem

Tanım

Belirtilen koleksiyon dizinine ClientTarget sahip nesneyi kaldırır.

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

Parametreler

index
Int32

Kaldırılacak öğesinin ClientTarget koleksiyon dizini.

Örnekler

Aşağıdaki kod örneği, nesnesini koleksiyondan ClientTargetCollection kaldırırClientTarget.

Koleksiyonu alma hakkında daha fazla bilgi için sınıfa genel bakış bölümünde yer alan kod örneğine ClientTargetCollection bakın.


// 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

Açıklamalar

RemoveAt yöntemi, geçerli hiyerarşi düzeyinde bölümündeki öğesini clientTarget siler add ve bir remove öğe ekler. remove öğesi, hiyerarşide üst yapılandırma dosyalarında tanımlanan öğeye add başvuruyu etkin bir şekilde kaldırır ancak silmez.

Şunlara uygulanır

Ayrıca bkz.