SearchScope Property

The SearchScope property of the DomainController class gets or sets the search scope — whether to search only one level of Active Directory node, or to search the subtree — for user profiles.

Property Value

A System.DirectoryServices.SearchScope that contains the scope of the search.


The only supported enumeration values are: OneLevel and subtree. Base is treated as being OneLevel.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security