public SPOGroupPipeBind(string name)
 {
     var ctx = SPOSiteContext.CurrentSiteContext.Context;
     var group = ctx.Site.RootWeb.SiteGroups.GetByName(name);
     ctx.Load(group);
     ctx.ExecuteQuery();
     _group = new SPOGroup(group);
 }
 public SPOGroupPipeBind(int id)
 {
     var ctx = SPOSiteContext.CurrentSiteContext.Context;
     var group = ctx.Site.RootWeb.SiteGroups.GetById(id);
     ctx.Load(group);
     ctx.ExecuteQuery();
     _group = new SPOGroup(group);
 }
Пример #3
0
        public void Refresh()
        {
            _web.RefreshLoad();
            _web.Context.ExecuteQuery();

            _detailedLists = null;
            _lists = null;
            _availableContentTypes = null;
            _contentTypes = null;
            _folders = null;
            _allProperties = null;
            _associatedMemberGroup = null;
            _associatedOwnerGroup = null;
            _associatedVisitorGroup = null;
            _currentUser = null;
            _subWebs = null;
            _subWebsForCurrentUser = null;
            _detailedSubWebsForCurrentUser = null;
            _detailedSubWebs = null;
            _allSubWebs = null;
            _detailedAllSubWebs = null;
            _eventReceivers = null;
        }
 public SPOGroupPipeBind(SPOGroup group)
 {
     _group = group;
 }
 public SPOGroupPipeBind(Group group)
 {
     _group = new SPOGroup(group);
 }