Inheritance: SPDGPrincipal
示例#1
0
        public override void AddSiteGroup(string name, SPDGUser owner, SPDGUser defaultUser, string description)
        {
            if (_site.RootWeb.ID != this.ID)
            {
                _site.RootWeb.AddSiteGroup(name, owner, defaultUser, description);
            }
            invalidateSiteGroups();
            GroupCreationInformation groupCreateInformation=new GroupCreationInformation();
            groupCreateInformation.Title = name;
            groupCreateInformation.Description = description;

            var group= _web.SiteGroups.Add(groupCreateInformation);
            group.Owner = ((SPDGClientUser) owner).User;
            group.Update();
            _context.ExecuteQuery();
        }
示例#2
0
 public abstract void AddSiteGroup(string name, SPDGUser owner, SPDGUser defaultUser, string description);
示例#3
0
 public abstract void AddSiteGroup(string name, SPDGUser owner, SPDGUser defaultUser, string description);
示例#4
0
        public override void AddSiteGroup(string name, SPDGUser owner, SPDGUser defaultUser, string description)
        {
            var spOwner =((SPDGServerUser)owner).SPUser;
            var spDefaultUser = ((SPDGServerUser)defaultUser).SPUser;

            _spWeb.SiteGroups.Add(name, spOwner, spDefaultUser, description);
        }