GlobalCatalog.FindAll Method (DirectoryContext)

 

Finds all global catalog servers in the specified context.

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

public static GlobalCatalogCollection FindAll(
	DirectoryContext context
)

Parameters

context
Type: System.DirectoryServices.ActiveDirectory.DirectoryContext

A DirectoryContext object that contains the target and credentials to use for the search. The target of the context must be a forest.

Return Value

Type: System.DirectoryServices.ActiveDirectory.GlobalCatalogCollection

A GlobalCatalogCollection object that contains the global catalog servers found by the search.

Exception Condition
ArgumentException

context is not valid.

ArgumentNullException

context is null.

.NET Framework
Available since 2.0
Return to top
Show: