We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a10b0fb commit 8d76fdaCopy full SHA for 8d76fda
xml/System.DirectoryServices/DirectorySearcher.xml
@@ -601,7 +601,8 @@ public class Example
601
public static void Main()
602
{
603
DirectoryEntry group = new DirectoryEntry("LDAP://CN=MyGroup", …);
604
- DirectorySearcher src = new DirectorySearcher("(&(objectClass=user)(objectCategory=Person))");
+ DirectorySearcher src = new DirectorySearcher("(&(objectClass=user)(objectCategory=Person))");
605
+ src.SearchRoot = group;
606
src.AttributeScopeQuery = "member";
607
src.PropertiesToLoad.Add("sn");
608
src.PropertiesToLoad.Add("givenName");
0 commit comments