SearchScope Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

The SearchScope enumeration specifies the scope of a search.

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

public enum SearchScope

Member nameDescription
Base

Search only the specified base object. The value is equal to 0.

OneLevel

Search the child objects of the base object, but not the base object itself. The value is equal to 1.

Subtree

Search the base object and all child objects. The value is equal to 2.

.NET Framework
Available since 2.0
Return to top
Show: