Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (var search = new DirectorySearcher())
- {
- // Find a user based on their telephone number
- search.Filter = "(telephoneNumber=999)";
- search.PropertiesToLoad.Add("displayName");
- var result = search.FindOne();
- if(result != null) {....}
- }
Add Comment
Please, Sign In to add comment