Forest.FindAllGlobalCatalogs Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Finds all the global catalogs in this forest for a given site.

Namespace:   System.DirectoryServices.ActiveDirectory
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public GlobalCatalogCollection FindAllGlobalCatalogs(
	string siteName
)

Parameters

siteName
Type: System.String

The name of the site to search.

Return Value

Type: System.DirectoryServices.ActiveDirectory.GlobalCatalogCollection

A GlobalCatalogCollection object that contains the collection of global catalogs that were found.

Exception Condition
ActiveDirectoryServerDownException

The target server is either busy or unavailable.

ArgumentException

siteName is an empty string.

ArgumentNullException

siteName is null.

ObjectDisposedException

The object has been disposed.

.NET Framework
Available since 2.0
Return to top
Show: