Guest User

Untitled

a guest
May 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Dim oResults As DirectoryServices.SearchResultCollection = objSearch.FindAll
  2.  
  3. For Each oResult In oResults
  4. retList.Add(oResult.GetDirectoryEntry.Properties("cn").Value & " <-> " & oResult.GetDirectoryEntry.Properties("mail").Value)
  5. Next
  6.  
  7.  
  8.  
  9. DirectoryServices.SearchResultCollection oResults = objSearch.FindAll();
  10.  
  11. foreach (object oResult_loopVariable in oResults) {
  12. oResult = oResult_loopVariable;
  13. retList.Add(oResult.GetDirectoryEntry.Properties("cn").Value + " <-> " + oResult.GetDirectoryEntry.Properties("mail").Value);
  14. }
Add Comment
Please, Sign In to add comment