GlobalCatalogCollection.IndexOf(GlobalCatalog) Método
Definição
Retorna a primeira ocorrência do objeto GlobalCatalog especificado nesta coleção.Returns the first occurrence of the specified GlobalCatalog object in this collection.
public:
int IndexOf(System::DirectoryServices::ActiveDirectory::GlobalCatalog ^ globalCatalog);
public int IndexOf (System.DirectoryServices.ActiveDirectory.GlobalCatalog globalCatalog);
member this.IndexOf : System.DirectoryServices.ActiveDirectory.GlobalCatalog -> int
Public Function IndexOf (globalCatalog As GlobalCatalog) As Integer
Parâmetros
- globalCatalog
- GlobalCatalog
O objeto GlobalCatalog a ser pesquisado nesta coleção.The GlobalCatalog 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 GlobalCatalog.Returns -1 if no member of this collection is identical to the GlobalCatalog object.
Exceções
Uma chamada ao serviço do diretório subjacente resultou em um erro.A call to the underlying directory service resulted in an error.
globalCatalog é null.globalCatalog is null.