Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SearchScope Enumeration

Specifies the possible scopes for a directory search that is performed using the DirectorySearcher object.

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

public enum SearchScope
public enum SearchScope
public enum SearchScope

 Member nameDescription
BaseLimits the search to the base object. The result contains a maximum of one object. When the AttributeScopeQuery property is specified for a search, the scope of the search must be set to Base
OneLevelSearches the immediate child objects of the base object, excluding the base object. 
SubtreeSearches the whole subtree, including the base object and all its child objects. If the scope of a directory search is not specified, a Subtree type of search is performed.  

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, 1.1, 1.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft