Exemplo n.º 1
0
        /// <summary>
        /// Constructor for ProvisioningTemplate class
        /// </summary>
        public ProvisioningTemplate()
        {
            this.connector = new FileSystemConnector(".", "");

            this._localizations = new LocalizationCollection(this);
            this._siteFields    = new FieldCollection(this);
            this._contentTypes  = new ContentTypeCollection(this);
            this._propertyBags  = new PropertyBagEntryCollection(this);
            this._lists         = new ListInstanceCollection(this);

            this._siteSecurity = new SiteSecurity();
            this._siteSecurity.ParentTemplate = this;

            this._composedLook = new ComposedLook();
            this._composedLook.ParentTemplate = this;
            this._features = new Features();
            this._features.ParentTemplate      = this;
            this._customActions                = new CustomActions();
            this._customActions.ParentTemplate = this;

            this._files                 = new FileCollection(this);
            this._directories           = new DirectoryCollection(this);
            this._providers             = new ProviderCollection(this); // Deprecated
            this._extensibilityHandlers = new ExtensibilityHandlerCollection(this);
            this._pages                 = new PageCollection(this);
            this._termGroups            = new TermGroupCollection(this);

            this._supportedUILanguages = new SupportedUILanguageCollection(this);
            this._addins = new AddInCollection(this);

            this._siteWebhooks    = new SiteWebhookCollection(this);
            this._clientSidePages = new ClientSidePageCollection(this);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Compare languages
        /// </summary>
        /// <param name="other">Collection of languages to compare with</param>
        /// <returns>True if the same, false otherwise</returns>
        public bool Equals(SupportedUILanguageCollection other)
        {
            if (other == null)
            {
                return(false);
            }

            return(this.Items.AsEnumerable <SupportedUILanguage>().DeepEquals(other.Items.AsEnumerable <SupportedUILanguage>()));
        }