EventDescriptorCollection.IList.IndexOf(Object) Metod

Definition

Avgör indexet för ett specifikt objekt i samlingen.

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf(object value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

Parametrar

value
Object

Att Object hitta i samlingen.

Returer

Indexet för value om det finns i listan, annars -1.

Implementeringar

Kommentarer

Note

Attributet HostProtectionAttribute som tillämpas på den här klassen har följande Resources egenskapsvärde: Synchronization. Påverkar HostProtectionAttribute inte skrivbordsprogram (som vanligtvis startas genom att dubbelklicka på en ikon, skriva ett kommando eller ange en URL i en webbläsare). Mer information finns i klassen HostProtectionAttribute eller SQL Server Programming and Host Protection Attributes.

Gäller för