Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. EntityCollection result = proxy.RetrieveMultiple(expression);
  2. foreach (var entity in result.Entities)
  3. {
  4. String output = String.Empty;
  5. if (entity.Attributes.Contains("account"))
  6. output = entity.Attributes["account"].ToString();
  7. }
  8.  
  9. foreach (Entity entity in result.Entities)
  10. {
  11. foreach (KeyValuePair<String, Object> attribute in entity.Attributes)
  12. {
  13. Console.WriteLine(attribute.Key + ": " + attribute.Value);
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement