ServiceDescriptionFormatExtensionCollection.IndexOf(Object) Método
Definição
Pesquisa o ServiceDescriptionFormatExtension especificado e retorna o índice de base zero da primeira instância na coleção.Searches for the specified ServiceDescriptionFormatExtension and returns the zero-based index of the first instance with the collection.
public:
int IndexOf(System::Object ^ extension);
public int IndexOf (object extension);
member this.IndexOf : obj -> int
Public Function IndexOf (extension As Object) As Integer
Parâmetros
- extension
- Object
O ServiceDescriptionFormatExtension a ser pesquisado na coleção.The ServiceDescriptionFormatExtension for which to search in the collection.
Retornos
O índice de base zero do ServiceDescriptionFormatExtension especificado ou -1 se o elemento não tiver sido encontrado na coleção.The zero-based index of the specified ServiceDescriptionFormatExtension, or -1 if the element was not found in the collection.
Exemplos
// 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())