Guest User

Untitled

a guest
Jul 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. using (var search = new DirectorySearcher())
  2. {
  3. // Find a user based on their telephone number
  4. search.Filter = "(telephoneNumber=999)";
  5. search.PropertiesToLoad.Add("displayName");
  6. var result = search.FindOne();
  7. if(result != null) {....}
  8. }
Add Comment
Please, Sign In to add comment