FindGlobalCatalog Method (String)

Forest.FindGlobalCatalog Method (String)

 

Finds a global catalog in this forest for a specified site.

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

public GlobalCatalog FindGlobalCatalog(
	string siteName
)

Parameters

siteName
Type: System.String

The name of the site to search.

Return Value

Type: System.DirectoryServices.ActiveDirectory.GlobalCatalog

A GlobalCatalog object for the specified site.

Exception Condition
ActiveDirectoryObjectNotFoundException

A global catalog cannot be located.

ActiveDirectoryOperationException

A call to the underlying directory service resulted in an error.

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:
© 2016 Microsoft