/// <summary> /// Custom constructor to manage the ParentTemplate for the collection /// and all the children of the collection /// </summary> /// <param name="parentTemplate">Parent provisioning template</param> public BaseProvisioningTemplateObjectCollection(ProvisioningTemplate parentTemplate) { this.ParentTemplate = parentTemplate; }
protected override void RemoveItem(int index) { this.Items[index].ParentTemplate = null; base.RemoveItem(index); }
/// <summary> /// Constructor for SupportedUILangaugeCollection class /// </summary> /// <param name="parentTemplate">Parent provisioning template</param> public SupportedUILanguageCollection(ProvisioningTemplate parentTemplate) : base(parentTemplate) { }