Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _Context = new SP.ClientContext
- (SP.ApplicationContext.Current.Url);
- _Context.Load(_Context.Web);
- _Context.Load(_Context.Web.CurrentUser);
- _Context.Load(_Context.Web.SiteGroups);
- _MemberGroup = _Context.Web.AssociatedMemberGroup;
- _MemberUserCollectionInGroup = _MemberGroup.Users;
- _Context.Load(_MemberUserCollectionInGroup);
- _VisitorGroup = _Context.Web.AssociatedVisitorGroup;
- _VisitorUserCollectionInGroup = _VisitorGroup.Users;
- _Context.Load(_VisitorUserCollectionInGroup);
- //_Context.Load(_Context.Web, website => website.Title);
- _Context.ExecuteQueryAsync(OnConnectSucceeded, OnConnectFailed);
Add Comment
Please, Sign In to add comment