ServiceDescriptionFormatExtensionCollection.IndexOf(Object) Methode

Definitie

Zoekt naar de opgegeven ServiceDescriptionFormatExtension en retourneert de op nul gebaseerde index van het eerste exemplaar met de verzameling.

public:
 int IndexOf(System::Object ^ extension);
public int IndexOf(object extension);
member this.IndexOf : obj -> int
Public Function IndexOf (extension As Object) As Integer

Parameters

extension
Object

De ServiceDescriptionFormatExtension zoekfunctie in de verzameling.

Retouren

De op nul gebaseerde index van de opgegeven ServiceDescriptionFormatExtensionof -1 als het element niet in de verzameling is gevonden.

Voorbeelden

// Get index of a 'myFormatExtension' object in collection.
Console::WriteLine( "Index of 'myFormatExtensionObject' is {0} in collection.", myCollection->IndexOf( myFormatExtensionObject ) );
// Get index of a 'myFormatExtension' object in collection.
Console.WriteLine("Index of 'myFormatExtensionObject' is "+
   "{0} in collection.",
   myCollection.IndexOf(myFormatExtensionObject).ToString());
' Get index of a 'myFormatExtension' object in collection.
Console.WriteLine("Index of 'myFormatExtensionObject' is " + _
     "{0} in collection.", myCollection.IndexOf(myFormatExtensionObject).ToString())

Van toepassing op