66 references to SearchScope
System.DirectoryServices (61)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (2)
227
SearchScope
.OneLevel);
275
SearchScope
.OneLevel);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchema.cs (2)
411
ADSearcher searcher = new ADSearcher(schemaEntry, filter, propertiesToLoad,
SearchScope
.OneLevel);
465
ADSearcher searcher = new ADSearcher(schemaEntry, filter, propertiesToLoad,
SearchScope
.OneLevel);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (3)
1206
propertyValuesFromServer = Utils.GetValuesWithRangeRetrieval(schemaEntry, str.ToString(), propertyNamesWithRangeRetrieval, propertyNamesWithoutRangeRetrieval,
SearchScope
.OneLevel);
1304
ADSearcher searcher = new ADSearcher(_schemaEntry, filter, propertiesToLoad,
SearchScope
.OneLevel);
1376
ADSearcher searcher = new ADSearcher(_schemaEntry, filter, propertiesToLoad,
SearchScope
.OneLevel);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaProperty.cs (1)
1255
ADSearcher searcher = new ADSearcher(schemaEntry, str.ToString(), propertiesToLoad,
SearchScope
.OneLevel, false /* paged search */, false /* cache results */);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (8)
93
SearchScope
.OneLevel,
908
SearchScope
.Subtree,
999
SearchScope
.Subtree);
1142
SearchScope
.OneLevel
1186
SearchScope
.Subtree);
1254
SearchScope
.Subtree);
1369
SearchScope
.Subtree);
1437
SearchScope
.OneLevel);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (2)
153
SearchScope
.OneLevel,
704
Hashtable values = Utils.GetValuesWithRangeRetrieval(cachedEntry, "(objectClass=*)", propertyList,
SearchScope
.Base);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (2)
140
SearchScope
.OneLevel,
360
Hashtable values = Utils.GetValuesWithRangeRetrieval(cachedEntry!, "(objectClass=*)", propertyList,
SearchScope
.Base);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnet.cs (1)
51
SearchScope
.OneLevel,
System\DirectoryServices\ActiveDirectory\ADSearcher.cs (2)
13
public ADSearcher(DirectoryEntry searchRoot, string filter, string[] propertiesToLoad,
SearchScope
scope)
29
public ADSearcher(DirectoryEntry searchRoot, string? filter, string[] propertiesToLoad,
SearchScope
scope, bool pagedSearch, bool cacheResults)
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (1)
235
ADSearcher searcher = new ADSearcher(partitionsEntry, filter, propertiesToLoad,
SearchScope
.OneLevel, false /*not paged search*/, false /*no cached results*/);
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (3)
428
ADSearcher searcher = new ADSearcher(rootEntry, filter, propertiesToLoad,
SearchScope
.Subtree, false /*not paged search*/, false /*no cached results*/);
635
ADSearcher searcher = new ADSearcher(sitesEntry, filter, propertiesToLoad,
SearchScope
.OneLevel);
690
ADSearcher searcher = new ADSearcher(partitionsEntry, filter, propertiesToLoad,
SearchScope
.OneLevel);
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (3)
241
values = Utils.GetValuesWithRangeRetrieval(serverNtdsaEntry, null, propertyNames,
SearchScope
.Base);
773
SearchScope
.OneLevel);
812
SearchScope
.Subtree);
System\DirectoryServices\ActiveDirectory\Domain.cs (2)
1114
ADSearcher searcher = new ADSearcher(partitionsEntry, filter, propertiesToLoad,
SearchScope
.OneLevel, false /*not paged search*/, false /*no cached results*/);
1204
ADSearcher searcher = new ADSearcher(partitionsEntry, filter, propertiesToLoad,
SearchScope
.OneLevel);
System\DirectoryServices\ActiveDirectory\Forest.cs (2)
951
ADSearcher searcher = new ADSearcher(partitionsEntry, filter, propertiesToLoad,
SearchScope
.OneLevel);
1017
ADSearcher searcher = new ADSearcher(partitionsEntry, filter, propertiesToLoad,
SearchScope
.OneLevel);
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (1)
57
SearchScope
.OneLevel,
System\DirectoryServices\ActiveDirectory\Utils.cs (8)
316
ADSearcher searcher = new ADSearcher(serversEntry, filter, propertiesToLoad,
SearchScope
.Subtree, true /* paged search */, true /* cache results */);
375
ADSearcher searcher = new ADSearcher(serversEntry, filter, propertiesToLoad,
SearchScope
.Subtree, true /* paged search */, true /* cache results */);
797
ADSearcher searcher = new ADSearcher(partitionsEntry, filter, propertiesToLoad,
SearchScope
.OneLevel, false /*not paged search*/, false /*no cached results*/);
896
SearchScope
.Subtree,
1089
internal static Hashtable GetValuesWithRangeRetrieval(DirectoryEntry searchRootEntry, string? filter, ArrayList propertiesToLoad,
SearchScope
searchScope)
1099
internal static Hashtable GetValuesWithRangeRetrieval(DirectoryEntry searchRootEntry, string? filter, ArrayList propertiesWithRangeRetrieval, ArrayList propertiesWithoutRangeRetrieval,
SearchScope
searchScope)
1296
values = Utils.GetValuesWithRangeRetrieval(fsmoPartitionsEntry, filter, propertyNames,
SearchScope
.OneLevel);
1456
ADSearcher searcher2 = new ADSearcher(searchRootEntry, filter2, Array.Empty<string>(),
SearchScope
.Subtree);
System\DirectoryServices\DirectorySearcher.cs (18)
26
private
SearchScope
_scope = System.DirectoryServices.
SearchScope
.Subtree;
56
public DirectorySearcher() : this(null, defaultFilter, null, System.DirectoryServices.
SearchScope
.Subtree)
66
public DirectorySearcher(DirectoryEntry? searchRoot) : this(searchRoot, defaultFilter, null, System.DirectoryServices.
SearchScope
.Subtree)
76
public DirectorySearcher(DirectoryEntry? searchRoot, string? filter) : this(searchRoot, filter, null, System.DirectoryServices.
SearchScope
.Subtree)
86
public DirectorySearcher(DirectoryEntry? searchRoot, string? filter, string[]? propertiesToLoad) : this(searchRoot, filter, propertiesToLoad, System.DirectoryServices.
SearchScope
.Subtree)
96
public DirectorySearcher(string? filter) : this(null, filter, null, System.DirectoryServices.
SearchScope
.Subtree)
106
public DirectorySearcher(string? filter, string[]? propertiesToLoad) : this(null, filter, propertiesToLoad, System.DirectoryServices.
SearchScope
.Subtree)
115
public DirectorySearcher(string? filter, string[]? propertiesToLoad,
SearchScope
scope) : this(null, filter, propertiesToLoad, scope)
123
public DirectorySearcher(DirectoryEntry? searchRoot, string? filter, string[]? propertiesToLoad,
SearchScope
scope)
259
[DefaultValue(
SearchScope
.Subtree)]
260
public
SearchScope
SearchScope
265
if (value <
SearchScope
.Base || value >
SearchScope
.Subtree)
266
throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(
SearchScope
));
269
if (_attributeScopeQuerySpecified && value !=
SearchScope
.Base)
410
if (_scopeSpecified && SearchScope !=
SearchScope
.Base)
416
_scope =
SearchScope
.Base;
System.DirectoryServices.AccountManagement (5)
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (2)
382
ds.SearchScope =
SearchScope
.Base;
859
ds.SearchScope =
SearchScope
.Base;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (2)
1289
searchers[index].SearchScope =
SearchScope
.Base;
1682
dsMembers[0].SearchScope =
SearchScope
.Base;
System\DirectoryServices\AccountManagement\Group.cs (1)
371
using (DirectorySearcher ds = new DirectorySearcher(de, "(objectClass=*)", s_member,
SearchScope
.Base))