Forest.FindAllDiscoverableGlobalCatalogs Method (String)
Finds all of the discoverable global catalogs in this forest in a specified site.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
- Type: System.String
The name of the site to search.
Return ValueType: System.DirectoryServices.ActiveDirectory.GlobalCatalogCollection
A GlobalCatalogCollection that contains the collection of global catalogs that were found.
You can find discoverable global catalogs by querying DNS SRV records. If a global catalog does not register a GC SRV record for the specified site, it will not be returned by this method, even if the global catalog is physically located within that site.
All global catalogs which register a GC SRV record for the specified site will be returned by this method, even if they might not be physically located within that site.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2