This documentation is archived and is not being maintained.

SearchScope Enumeration

Specifies the possible scopes for a directory search.

[Visual Basic]
Public Enum SearchScope
public enum SearchScope
__value public enum SearchScope
enum SearchScope


Member name Description
Base Limits the search to the base object. The result contains one object at most.
OneLevel Searches the immediate child objects of the base object, excluding the base object.
Subtree Searches the whole subtree, including the base object and all its child objects.


Namespace: System.DirectoryServices

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Directoryservices (in System.Directoryservices.dll)

See Also

System.DirectoryServices Namespace | DirectoryEntry | DirectoryEntries | PropertyCollection | PropertyValueCollection | DirectorySearcher | ReferralChasingOption | SearchResultCollection | SearchResult | ResultPropertyCollection | ResultPropertyValueCollection | SortDirection | SortOption