Exemple #1
0
 public static Guid CreateSiteCollectionTenant(this Web web, string url, string title, string siteOwnerLogin,
                                                 string template, int storageMaximumLevel, int storageWarningLevel,
                                                 int timeZoneId, int userCodeMaximumLevel, int userCodeWarningLevel,
                                                 uint lcid, bool removeFromRecycleBin = false, bool wait = true)
 {
     Tenant tenant = new Tenant(web.Context);
     return tenant.AddSiteCollection(url, title, siteOwnerLogin, template, storageMaximumLevel, storageWarningLevel, timeZoneId, userCodeMaximumLevel, userCodeWarningLevel, lcid, removeFromRecycleBin, wait);
 }
        public static Guid CreateSiteCollectionTenant(this Web web, string url, string title, string siteOwnerLogin,
                                                      string template, int storageMaximumLevel, int storageWarningLevel,
                                                      int timeZoneId, int userCodeMaximumLevel, int userCodeWarningLevel,
                                                      uint lcid, bool removeFromRecycleBin = false, bool wait = true)
        {
            Tenant tenant = new Tenant(web.Context);

            return(tenant.AddSiteCollection(url, title, siteOwnerLogin, template, storageMaximumLevel, storageWarningLevel, timeZoneId, userCodeMaximumLevel, userCodeWarningLevel, lcid, removeFromRecycleBin, wait));
        }
Exemple #3
0
        /// <summary>
        /// Launches a site collection creation and waits for the creation to finish
        /// </summary>
        /// <param name="tenant">A tenant object pointing to the context of a Tenant Administration site</param>
        /// <param name="siteFullUrl">The SPO url</param>
        /// <param name="title">The site title</param>
        /// <param name="siteOwnerLogin">Owner account</param>
        /// <param name="template">Site template being used</param>
        /// <param name="storageMaximumLevel">Site quota in MB</param>
        /// <param name="storageWarningLevel">Site quota warning level in MB</param>
        /// <param name="timeZoneId">TimeZoneID for the site. "(UTC+01:00) Brussels, Copenhagen, Madrid, Paris" = 3 </param>
        /// <param name="userCodeMaximumLevel">The user code quota in points</param>
        /// <param name="userCodeWarningLevel">The user code quota warning level in points</param>
        /// <param name="lcid">The site locale. See http://technet.microsoft.com/en-us/library/ff463597.aspx for a complete list of Lcid's</param>
        /// <returns></returns>
        public static Guid AddSiteCollection(this Tenant tenant, string siteFullUrl, string title, string siteOwnerLogin,
                                             string template, int storageMaximumLevel, int storageWarningLevel,
                                             int timeZoneId, int userCodeMaximumLevel, int userCodeWarningLevel,
                                             uint lcid, bool removeFromRecycleBin = false, bool wait = true)
        {
            SiteEntity siteCol = new SiteEntity()
            {
                Url                  = siteFullUrl,
                Title                = title,
                SiteOwnerLogin       = siteOwnerLogin,
                Template             = template,
                StorageMaximumLevel  = storageMaximumLevel,
                StorageWarningLevel  = storageWarningLevel,
                TimeZoneId           = timeZoneId,
                UserCodeMaximumLevel = userCodeMaximumLevel,
                UserCodeWarningLevel = userCodeWarningLevel,
                Lcid                 = lcid
            };

            return(tenant.AddSiteCollection(siteCol, removeFromRecycleBin, wait));
        }
Exemple #4
0
 public static Guid AddSiteCollectionTenant(this Web web, SiteEntity properties, bool removeFromRecycleBin = false, bool wait = true)
 {
     Tenant tenant = new Tenant(web.Context);
     return tenant.AddSiteCollection(properties, removeFromRecycleBin, wait);
 }