ListSortDescriptionCollection.IList.Insert(Int32, Object) Metod

Definition

Infogar ett objekt i samlingen vid ett angivet index.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert(int index, object value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

Parametrar

index
Int32

Det nollbaserade indexet för att ListSortDescription hämta eller ange i samlingen.

value
Object

Objektet som ska infogas i samlingen.

Implementeringar

Undantag

I samtliga fall.

Kommentarer

ListSortDescriptionCollection Eftersom klassen implementerar System.Collections.IList gränssnittet måste den ha en IList.Insert metod. Men eftersom ListSortDescriptionCollection klassen representerar en skrivskyddad samling är det en ogiltig åtgärd att infoga objekt i samlingen.

Gäller för