Share via


UrlMappingCollection.RemoveAt(Int32) Methode

Definition

Entfernt das UrlMapping-Objekt mit dem angegebenen Index aus der Auflistung.

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

Parameter

index
Int32

Der Auflistungsindex des zu entfernenden UrlMapping-Objekts.

Beispiele

Im folgenden Codebeispiel wird das UrlMapping Objekt aus dem UrlMappingCollection.

Weitere Informationen zum Abrufen der UrlMappingCollection Auflistung finden Sie im Codebeispiel im Kursthema.


// Remove the URL at the 
// specified index from the collection.
urlMappings.RemoveAt(0);

// Update the configuration file.
if (!urlMappingSection.IsReadOnly())
  configuration.Save();
' Remove the URL at the 
' specified index from the collection.
urlMappings.RemoveAt(0)

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

Hinweise

Die RemoveAt Methode löscht das add Element im Abschnitt auf urlMappings der aktuellen Hierarchieebene und fügt ein Element ein remove . Das Remove-Element entfernt effektiv den Verweis auf das Element, das in den add übergeordneten Konfigurationsdateien auf höheren Ebenen in der Hierarchie definiert ist, aber es nicht löscht.

Gilt für

Siehe auch