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)
1309return new DirectorySearcher(de);
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (1)
433return new DirectorySearcher(de);
System.DirectoryServices.AccountManagement (9)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (1)
280using (DirectorySearcher dirSearcher = new DirectorySearcher(deSCN))
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (4)
1027DirectorySearcher ds = new DirectorySearcher(this.ctxBase); 1432ds = new DirectorySearcher(fspContainer ?? dncContainer ?? this.ctxBase); 1707DirectorySearcher ds = new DirectorySearcher(this.ctxBase); 1812ds = new DirectorySearcher(defaultNCDirEntry);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (1)
473DirectorySearcher ds = new DirectorySearcher(this.ctxBase);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (1)
120ps.UnderlyingSearcher = new DirectorySearcher(this.ctxBase);
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (1)
769DirectorySearcher ds = new DirectorySearcher(de);
System\DirectoryServices\AccountManagement\Group.cs (1)
371using (DirectorySearcher ds = new DirectorySearcher(de, "(objectClass=*)", s_member, SearchScope.Base))
99 references to DirectorySearcher
System.DirectoryServices (50)
System\DirectoryServices\ActiveDirectory\ADSearcher.cs (1)
10private readonly DirectorySearcher _searcher;
System\DirectoryServices\ActiveDirectory\DomainController.cs (2)
412public virtual DirectorySearcher GetDirectorySearcher() 1300private DirectorySearcher InternalGetDirectorySearcher()
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (2)
246public override DirectorySearcher GetDirectorySearcher() 424private 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'/>. 27internal DirectorySearcher srch; 29internal 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)
280using (DirectorySearcher dirSearcher = new DirectorySearcher(deSCN))
System\DirectoryServices\AccountManagement\AD\ADDNConstraintLinkedAttrSet.cs (3)
45DirectorySearcher queryMembersSearcher, 59DirectorySearcher[] membersSearcher, 61DirectorySearcher primaryGroupMembersSearcher,
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (21)
39DirectorySearcher primaryGroupMembersSearcher, 81DirectorySearcher[] membersSearcher, 83DirectorySearcher primaryGroupMembersSearcher, 114foreach (DirectorySearcher ds in membersSearcher) 380DirectorySearcher ds = SDSUtils.ConstructSearcher(groupDE); 857DirectorySearcher ds = SDSUtils.ConstructSearcher((DirectoryEntry)foreignGroup.UnderlyingObject); 984foreach (DirectorySearcher ds in _memberSearchersQueue) 993foreach (DirectorySearcher ds in _memberSearchersQueueOriginal) 1099bookmark.memberSearcherQueue = new Queue<DirectorySearcher>(_memberSearchersQueue.Count); 1101foreach (DirectorySearcher ds in _memberSearchersQueue) 1111foreach (DirectorySearcher ds in _memberSearchersQueueOriginal) 1170foreach (DirectorySearcher ds in _memberSearchersQueue) 1179foreach (DirectorySearcher ds in adBookmark.memberSearcherQueue) 1223foreach (DirectorySearcher ds in _memberSearchersQueue) 1315private readonly DirectorySearcher _primaryGroupMembersSearcher; 1319private DirectorySearcher _currentMembersSearcher; 1321private readonly Queue<DirectorySearcher> _memberSearchersQueue = new Queue<DirectorySearcher>(); 1322private readonly Queue<DirectorySearcher> _memberSearchersQueueOriginal = new Queue<DirectorySearcher>(); 1387public Queue<DirectorySearcher> memberSearcherQueue;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (13)
1027DirectorySearcher ds = new DirectorySearcher(this.ctxBase); 1149DirectorySearcher memberOfSearcher = null; 1168DirectorySearcher[] searchers = null; 1284searchers = new DirectorySearcher[roots.Count]; 1411DirectorySearcher ds = null; 1512DirectorySearcher[] memberSearcher = { SDSUtils.ConstructSearcher(this.ctxBase) }; 1645DirectorySearcher ds = null; 1679DirectorySearcher[] dsMembers = new DirectorySearcher[1]; 1699private DirectorySearcher GetDirectorySearcherFromGroupID(byte[] groupSid) 1707DirectorySearcher ds = new DirectorySearcher(this.ctxBase); 1804DirectorySearcher ds = null; 1886DirectorySearcher ds = null;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (1)
473DirectorySearcher ds = new DirectorySearcher(this.ctxBase);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (7)
28internal 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 125DirectorySearcher ds = (DirectorySearcher)ps.UnderlyingSearcher; 232DirectorySearcher ds = (DirectorySearcher)PushFilterToNativeSearcher(ps);
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (2)
767internal static DirectorySearcher ConstructSearcher(DirectoryEntry de) 769DirectorySearcher ds = new DirectorySearcher(de);
System\DirectoryServices\AccountManagement\Group.cs (1)
371using (DirectorySearcher ds = new DirectorySearcher(de, "(objectClass=*)", s_member, SearchScope.Base))