ReadOnlyActiveDirectorySchemaPropertyCollection.IndexOf(ActiveDirectorySchemaProperty) Método
Definição
Retorna o índice da primeira ocorrência do objeto ActiveDirectorySchemaProperty especificado nesta coleção.Returns the index of the first occurrence of the specified ActiveDirectorySchemaProperty object in this collection.
public:
int IndexOf(System::DirectoryServices::ActiveDirectory::ActiveDirectorySchemaProperty ^ schemaProperty);
public int IndexOf (System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty schemaProperty);
member this.IndexOf : System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty -> int
Public Function IndexOf (schemaProperty As ActiveDirectorySchemaProperty) As Integer
Parâmetros
- schemaProperty
- ActiveDirectorySchemaProperty
O objeto ActiveDirectorySchemaProperty a ser pesquisado nesta coleção.The ActiveDirectorySchemaProperty object to search for in this collection.
Retornos
O índice de base zero do primeiro objeto de correspondência.The zero-based index of the first matching object. Retornará -1 se nenhum membro dessa coleção for idêntico ao objeto ActiveDirectorySchemaProperty.Returns -1 if no member of this collection is identical to the ActiveDirectorySchemaProperty object.
Exceções
Uma chamada ao serviço de diretório subjacente resultou em um erro.A call to the underlying directory service resulted in an error.
schemaProperty é null.schemaProperty is null.