private void UpdateSiteCollection()
 {
     using (SharePointNotification sharePointNotification = new SharePointNotification(SharePointNotification.NotificationType.Update, this.ExternalDirectoryObjectId, base.AccessingUser.OrganizationId, base.ActAsUserCredentials, base.ActivityId))
     {
         if (this.Description != null)
         {
             sharePointNotification.SetPropertyValue("Description", this.Description, false);
         }
         if (!string.IsNullOrEmpty(this.DisplayName))
         {
             sharePointNotification.SetPropertyValue("DisplayName", this.DisplayName, false);
         }
         if (this.AddedOwners != null && this.AddedOwners.Length != 0)
         {
             sharePointNotification.AddOwners(this.AddedOwners);
         }
         if (this.RemovedOwners != null && this.RemovedOwners.Length != 0)
         {
             sharePointNotification.RemoveOwners(this.RemovedOwners);
         }
         if (this.AddedMembers != null && this.AddedMembers.Length != 0)
         {
             sharePointNotification.AddMembers(this.AddedMembers);
         }
         if (this.RemovedMembers != null && this.RemovedMembers.Length != 0)
         {
             sharePointNotification.RemoveMembers(this.RemovedMembers);
         }
         sharePointNotification.Execute();
     }
 }
 private void CreateSiteCollection()
 {
     using (SharePointNotification sharePointNotification = new SharePointNotification(SharePointNotification.NotificationType.Create, this.ExternalDirectoryObjectId, base.AccessingUser.OrganizationId, base.ActAsUserCredentials, base.ActivityId))
     {
         sharePointNotification.SetPropertyValue("Alias", this.Alias, false);
         sharePointNotification.SetPropertyValue("DisplayName", this.Name, false);
         sharePointNotification.SetPropertyValue("IsPublic", this.Type == ModernGroupTypeInfo.Public, false);
         if (!string.IsNullOrEmpty(this.Description))
         {
             sharePointNotification.SetPropertyValue("Description", this.Description, false);
         }
         sharePointNotification.SetAllowAccessTo(this.Type == ModernGroupTypeInfo.Public);
         sharePointNotification.Execute();
     }
 }