13 instantiations of DirectorySearcher
System.DirectoryServices (4)
System\DirectoryServices\ActiveDirectory\ADSearcher.cs (2)
15
_searcher = new
DirectorySearcher
(searchRoot, filter, propertiesToLoad, scope);
31
_searcher = new
DirectorySearcher
(searchRoot, filter, propertiesToLoad, scope);
System\DirectoryServices\ActiveDirectory\DomainController.cs (1)
1309
return new
DirectorySearcher
(de);
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (1)
433
return new
DirectorySearcher
(de);
System.DirectoryServices.AccountManagement (9)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (1)
280
using (DirectorySearcher dirSearcher = new
DirectorySearcher
(deSCN))
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (4)
1027
DirectorySearcher ds = new
DirectorySearcher
(this.ctxBase);
1432
ds = new
DirectorySearcher
(fspContainer ?? dncContainer ?? this.ctxBase);
1707
DirectorySearcher ds = new
DirectorySearcher
(this.ctxBase);
1812
ds = new
DirectorySearcher
(defaultNCDirEntry);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (1)
473
DirectorySearcher ds = new
DirectorySearcher
(this.ctxBase);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (1)
120
ps.UnderlyingSearcher = new
DirectorySearcher
(this.ctxBase);
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (1)
769
DirectorySearcher ds = new
DirectorySearcher
(de);
System\DirectoryServices\AccountManagement\Group.cs (1)
371
using (DirectorySearcher ds = new
DirectorySearcher
(de, "(objectClass=*)", s_member, SearchScope.Base))
99 references to DirectorySearcher
System.DirectoryServices (50)
System\DirectoryServices\ActiveDirectory\ADSearcher.cs (1)
10
private readonly
DirectorySearcher
_searcher;
System\DirectoryServices\ActiveDirectory\DomainController.cs (2)
412
public virtual
DirectorySearcher
GetDirectorySearcher()
1300
private
DirectorySearcher
InternalGetDirectorySearcher()
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (2)
246
public override
DirectorySearcher
GetDirectorySearcher()
424
private
DirectorySearcher
InternalGetDirectorySearcher()
System\DirectoryServices\DirectorySearcher.cs (40)
53
/// Initializes a new instance of the <see cref='System.DirectoryServices.
DirectorySearcher
'/> class with <see cref='System.DirectoryServices.
DirectorySearcher
.SearchRoot'/>,
54
/// <see cref='System.DirectoryServices.
DirectorySearcher
.Filter'/>, <see cref='System.DirectoryServices.
DirectorySearcher
.PropertiesToLoad'/>, and <see cref='System.DirectoryServices.
DirectorySearcher
.SearchScope'/> set to their default values.
62
/// Initializes a new instance of the <see cref='System.DirectoryServices.
DirectorySearcher
'/> class with
63
/// <see cref='System.DirectoryServices.
DirectorySearcher
.Filter'/>, <see cref='System.DirectoryServices.
DirectorySearcher
.PropertiesToLoad'/>, and <see cref='System.DirectoryServices.
DirectorySearcher
.SearchScope'/> set to their default
64
/// values, and <see cref='System.DirectoryServices.
DirectorySearcher
.SearchRoot'/> set to the given value.
72
/// Initializes a new instance of the <see cref='System.DirectoryServices.
DirectorySearcher
'/> class with
73
/// <see cref='System.DirectoryServices.
DirectorySearcher
.PropertiesToLoad'/> and <see cref='System.DirectoryServices.
DirectorySearcher
.SearchScope'/> set to their default
74
/// values, and <see cref='System.DirectoryServices.
DirectorySearcher
.SearchRoot'/> and <see cref='System.DirectoryServices.
DirectorySearcher
.Filter'/> set to the respective given values.
82
/// Initializes a new instance of the <see cref='System.DirectoryServices.
DirectorySearcher
'/> class with
83
/// <see cref='System.DirectoryServices.
DirectorySearcher
.SearchScope'/> set to its default
84
/// value, and <see cref='System.DirectoryServices.
DirectorySearcher
.SearchRoot'/>, <see cref='System.DirectoryServices.
DirectorySearcher
.Filter'/>, and <see cref='System.DirectoryServices.
DirectorySearcher
.PropertiesToLoad'/> set to the respective given values.
92
/// Initializes a new instance of the <see cref='System.DirectoryServices.
DirectorySearcher
'/> class with <see cref='System.DirectoryServices.
DirectorySearcher
.SearchRoot'/>,
93
/// <see cref='System.DirectoryServices.
DirectorySearcher
.PropertiesToLoad'/>, and <see cref='System.DirectoryServices.
DirectorySearcher
.SearchScope'/> set to their default
94
/// values, and <see cref='System.DirectoryServices.
DirectorySearcher
.Filter'/> set to the given value.
102
/// Initializes a new instance of the <see cref='System.DirectoryServices.
DirectorySearcher
'/> class with <see cref='System.DirectoryServices.
DirectorySearcher
.SearchRoot'/>
103
/// and <see cref='System.DirectoryServices.
DirectorySearcher
.SearchScope'/> set to their default
104
/// values, and <see cref='System.DirectoryServices.
DirectorySearcher
.Filter'/> and <see cref='System.DirectoryServices.
DirectorySearcher
.PropertiesToLoad'/> set to the respective given values.
112
/// Initializes a new instance of the <see cref='System.DirectoryServices.
DirectorySearcher
'/> class with <see cref='System.DirectoryServices.
DirectorySearcher
.SearchRoot'/> set to its default
113
/// value, and <see cref='System.DirectoryServices.
DirectorySearcher
.Filter'/>, <see cref='System.DirectoryServices.
DirectorySearcher
.PropertiesToLoad'/>, and <see cref='System.DirectoryServices.
DirectorySearcher
.SearchScope'/> set to the respective given values.
120
/// Initializes a new instance of the <see cref='System.DirectoryServices.
DirectorySearcher
'/> class with the <see cref='System.DirectoryServices.
DirectorySearcher
.SearchRoot'/>, <see cref='System.DirectoryServices.
DirectorySearcher
.Filter'/>, <see cref='System.DirectoryServices.
DirectorySearcher
.PropertiesToLoad'/>, and <see cref='System.DirectoryServices.
DirectorySearcher
.SearchScope'/> properties set to the given
System\DirectoryServices\SearchResult.cs (1)
10
/// that is returned during a search through <see cref='System.DirectoryServices.
DirectorySearcher
'/>.
System\DirectoryServices\SearchResultCollection.cs (4)
14
/// query to the Active Directory hierarchy through <see cref='System.DirectoryServices.
DirectorySearcher
'/>.
27
internal
DirectorySearcher
srch;
29
internal SearchResultCollection(DirectoryEntry root, IntPtr searchHandle, string[] propertiesLoaded,
DirectorySearcher
srch)
87
/// Gets a read-only collection of the properties specified on <see cref='System.DirectoryServices.
DirectorySearcher
'/> before the
System.DirectoryServices.AccountManagement (49)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (1)
280
using (
DirectorySearcher
dirSearcher = new DirectorySearcher(deSCN))
System\DirectoryServices\AccountManagement\AD\ADDNConstraintLinkedAttrSet.cs (3)
45
DirectorySearcher
queryMembersSearcher,
59
DirectorySearcher
[] membersSearcher,
61
DirectorySearcher
primaryGroupMembersSearcher,
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (21)
39
DirectorySearcher
primaryGroupMembersSearcher,
81
DirectorySearcher
[] membersSearcher,
83
DirectorySearcher
primaryGroupMembersSearcher,
114
foreach (
DirectorySearcher
ds in membersSearcher)
380
DirectorySearcher
ds = SDSUtils.ConstructSearcher(groupDE);
857
DirectorySearcher
ds = SDSUtils.ConstructSearcher((DirectoryEntry)foreignGroup.UnderlyingObject);
984
foreach (
DirectorySearcher
ds in _memberSearchersQueue)
993
foreach (
DirectorySearcher
ds in _memberSearchersQueueOriginal)
1099
bookmark.memberSearcherQueue = new Queue<
DirectorySearcher
>(_memberSearchersQueue.Count);
1101
foreach (
DirectorySearcher
ds in _memberSearchersQueue)
1111
foreach (
DirectorySearcher
ds in _memberSearchersQueueOriginal)
1170
foreach (
DirectorySearcher
ds in _memberSearchersQueue)
1179
foreach (
DirectorySearcher
ds in adBookmark.memberSearcherQueue)
1223
foreach (
DirectorySearcher
ds in _memberSearchersQueue)
1315
private readonly
DirectorySearcher
_primaryGroupMembersSearcher;
1319
private
DirectorySearcher
_currentMembersSearcher;
1321
private readonly Queue<
DirectorySearcher
> _memberSearchersQueue = new Queue<
DirectorySearcher
>();
1322
private readonly Queue<
DirectorySearcher
> _memberSearchersQueueOriginal = new Queue<
DirectorySearcher
>();
1387
public Queue<
DirectorySearcher
> memberSearcherQueue;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (13)
1027
DirectorySearcher
ds = new DirectorySearcher(this.ctxBase);
1149
DirectorySearcher
memberOfSearcher = null;
1168
DirectorySearcher
[] searchers = null;
1284
searchers = new
DirectorySearcher
[roots.Count];
1411
DirectorySearcher
ds = null;
1512
DirectorySearcher
[] memberSearcher = { SDSUtils.ConstructSearcher(this.ctxBase) };
1645
DirectorySearcher
ds = null;
1679
DirectorySearcher
[] dsMembers = new
DirectorySearcher
[1];
1699
private
DirectorySearcher
GetDirectorySearcherFromGroupID(byte[] groupSid)
1707
DirectorySearcher
ds = new DirectorySearcher(this.ctxBase);
1804
DirectorySearcher
ds = null;
1886
DirectorySearcher
ds = null;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (1)
473
DirectorySearcher
ds = new DirectorySearcher(this.ctxBase);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (7)
28
internal override Type SearcherNativeType() { return typeof(
DirectorySearcher
); }
121
((
DirectorySearcher
)ps.UnderlyingSearcher).PageSize = ps.PageSize;
122
((
DirectorySearcher
)ps.UnderlyingSearcher).ServerTimeLimit = new TimeSpan(0, 0, 30); // 30 seconds
125
DirectorySearcher
ds = (
DirectorySearcher
)ps.UnderlyingSearcher;
232
DirectorySearcher
ds = (
DirectorySearcher
)PushFilterToNativeSearcher(ps);
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (2)
767
internal static
DirectorySearcher
ConstructSearcher(DirectoryEntry de)
769
DirectorySearcher
ds = new DirectorySearcher(de);
System\DirectoryServices\AccountManagement\Group.cs (1)
371
using (
DirectorySearcher
ds = new DirectorySearcher(de, "(objectClass=*)", s_member, SearchScope.Base))