Guest User

Untitled

a guest
Jul 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. _Context = new SP.ClientContext
  2. (SP.ApplicationContext.Current.Url);
  3.  
  4. _Context.Load(_Context.Web);
  5. _Context.Load(_Context.Web.CurrentUser);
  6. _Context.Load(_Context.Web.SiteGroups);
  7.  
  8. _MemberGroup = _Context.Web.AssociatedMemberGroup;
  9. _MemberUserCollectionInGroup = _MemberGroup.Users;
  10. _Context.Load(_MemberUserCollectionInGroup);
  11.  
  12. _VisitorGroup = _Context.Web.AssociatedVisitorGroup;
  13. _VisitorUserCollectionInGroup = _VisitorGroup.Users;
  14. _Context.Load(_VisitorUserCollectionInGroup);
  15.  
  16. //_Context.Load(_Context.Web, website => website.Title);
  17. _Context.ExecuteQueryAsync(OnConnectSucceeded, OnConnectFailed);
Add Comment
Please, Sign In to add comment