AssemblyCollection.RemoveAt(Int32) Metoda

Definicja

AssemblyInfo Usuwa obiekt z kolekcjiAssemblyCollection.

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

Parametry

index
Int32

Wartość całkowita określająca AssemblyInfo obiekt w kolekcji AssemblyCollection .

Przykłady

W poniższym przykładzie kodu pokazano, jak używać RemoveAt metody . Ten przykład kodu jest częścią większego przykładu podanego AssemblyCollection dla klasy.

// Remove an assembly.
configSection.Assemblies.RemoveAt(configSection.Assemblies.Count - 1);
' Remove an assembly.
configSection.Assemblies.RemoveAt(configSection.Assemblies.Count - 1)

Uwagi

Jeśli zestaw nie istnieje w kolekcji, zgłaszany jest wyjątek poza zakresem.

Dotyczy