Export (0) Print
Expand All

GlobalCatalog.EnableGlobalCatalog Method

Not supported for the GlobalCatalog class because this domain controller is already a global catalog server.

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

[DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
[DirectoryServicesPermissionAttribute(SecurityAction.InheritanceDemand, Unrestricted = true)]
public override GlobalCatalog EnableGlobalCatalog()

Return Value

Type: System.DirectoryServices.ActiveDirectory.GlobalCatalog
Not applicable. This method will always throw an InvalidOperationException exception.

ExceptionCondition
InvalidOperationException

The domain controller is already a global catalog server.

ObjectDisposedException

The current object has been disposed.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft