Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

LocatorFlags Enumeration

The LocatorFlags enumeration specifies data required to locate a domain controller.

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

Namespace: System.DirectoryServices.Protocols
Assembly: System.DirectoryServices.Protocols (in system.directoryservices.protocols.dll)

[FlagsAttribute] 
public enum LocatorFlags : long
/** @attribute FlagsAttribute() */ 
public enum LocatorFlags
FlagsAttribute 
public enum LocatorFlags
 Member nameDescription
AvoidSelfSpecifies that the domain controller returned should not be the current computer. The value is equal to 16384 or 0x4000. 
DirectoryServicesPreferredAttempts to find a domain controller that supports directory service functions (Windows 2000 or later). The value is equal to 32 or 0x20. 
DirectoryServicesRequiredRequires that the returned domain controller support Windows 2000 or later. The value is equal to 16 or 0x10. 
ForceRediscoveryForces the cached domain controller to be ignored. The value is equal to 1 or 0x1. 
GCRequiredRequires that the returned domain controller be a global catalog server for the forest of domains with this domain as the root. The value is equal to 64 or 0x40. 
GoodTimeServerPreferredAttempts to find a domain controller that is a reliable time server. The value is equal to 8192 or 0x2000. 
IPRequiredSets the Internet protocol address of the domain controller in the DomainControllerAddress member of DomainControllerInfo. The value is equal to 512 or 0x200. 
IsDnsNameSpecifies that the DomainName parameter is a DNS name. The value is equal to 131072 or 0x20000. 
IsFlatNameSpecifies that the DomainName parameter is a flat name. The value is equal to 65536 or 0x10000. 
KdcRequiredRequires that the returned domain controller be currently running the Kerberos Key Distribution Center service. The value is equal to 1024 or 0x400. 
NoneNo data required. The value is equal to 0 or 0x0. 
OnlyLdapNeededSpecifies that the server returned is an LDAP server. The value is equal to 32768 or 0x8000. 
PdcRequiredRequires that the returned domain controller be the primary domain controller for the domain. The value is equal to 128 or 0x80. 
ReturnDnsNameSpecifies that the name returned should be a DNS name. The value is equal to 1073741824 or 0x40000000. 
ReturnFlatNameSpecifies that the name should be a flat name. The value is equal to 2147483648 or 0x80000000. 
TimeServerRequiredRequires that the returned domain controller be currently running the Windows Time Service. The value is equal to 2048 or 0x800. 
WriteableRequiredRequires that the returned domain controller be writable. The value is equal to 4096 or 0x1000. 

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.