| LDAPSetSearchBaseAndScope Method |
Sets the object that is the base for all searches, as well as the scope of the searches.
This only needs to be set if you need to search somewhere other than the base of the directory, or with a scope other than subtree.
Namespace:
Galactic.LDAP
Assembly:
Galactic.LDAP (in Galactic.LDAP.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public bool SetSearchBaseAndScope(
string distinguishedName,
SearchScope scope = SearchScope.Subtree
)
Public Function SetSearchBaseAndScope (
distinguishedName As String,
Optional scope As SearchScope = SearchScope.Subtree
) As Boolean
public:
bool SetSearchBaseAndScope(
String^ distinguishedName,
SearchScope scope = SearchScope::Subtree
)
member SetSearchBaseAndScope :
distinguishedName : string *
?scope : SearchScope
(* Defaults:
let _scope = defaultArg scope SearchScope.Subtree
*)
-> bool
Parameters
- distinguishedName
- Type: SystemString
The distinguished name of the object where searches will begin. (Typically an OU or the base DN of the directory.) - scope (Optional)
- Type: System.DirectoryServices.ProtocolsSearchScope
(Optional) The scope to use while searching. Defaults to Subtree. (Typically Base, just the object with the DN specified; OneLevel, just the child objects of the base object; or Subtree, the base object and all child objects)
Return Value
Type:
BooleanTrue if the search base and scope were set, false otherwise.
See Also