This documentation is archived and is not being maintained.

LocatorOptions Enumeration

Specifies search flags for finding a domain controller in a domain.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

public enum LocatorOptions

Member nameDescription
ForceRediscoveryForces cached domain controller data to be ignored when searching for domain controllers.
KdcRequiredSearch only for domain controllers that are currently running the Kerberos Key Distribution Center service.
TimeServerRequiredSearch only for domain controllers that are currently running the Windows Time service.
AvoidSelfWhen searching for domain controllers from a domain controller, exclude this domain controller from the search. If the current computer is not a domain controller, this flag is ignored.
WriteableRequiredSearch only for writeable domain controllers.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0


DomainFindDomainController(String, LocatorFlags)
DomainControllerFindOne(DirectoryContext, LocatorFlags)
DomainControllerFindOne(DirectoryContext, String, LocatorFlags)
ForestFindGlobalCatalog(String, LocatorFlags)
GlobalCatalogFindOne(DirectoryContext, LocatorFlags)
GlobalCatalogFindOne(DirectoryContext, String, LocatorFlags)