Microsoft.ManagementConsole.PropertySheet.AddPropertyPages C# (CSharp) Method

AddPropertyPages() private method

private AddPropertyPages ( PropertyPageCollection pageCollection ) : void
pageCollection PropertyPageCollection
return void
        internal void AddPropertyPages(PropertyPageCollection pageCollection)
        {
            if (pageCollection == null)
            {
                throw new ArgumentNullException("pageCollection");
            }
            for (int i = 0; i < pageCollection.Count; i++)
            {
                PropertyPage propertyPage = pageCollection[i];
                propertyPage.SetPageIdAndParentSheet(i, this);
                this.AddPropertyPage(propertyPage);
            }
        }

Usage Example

Esempio n. 1
0
 internal PropertySheet CreatePropertySheet(int sheetId, PropertyPageCollection pageCollection, AuxiliarySelectionData auxiliarySelectionData)
 {
     if (pageCollection == null)
     {
         throw new ArgumentNullException("pageCollection");
     }
     PropertySheet sheet = new PropertySheet(this, sheetId, auxiliarySelectionData);
     sheet.AddPropertyPages(pageCollection);
     this.AddPropertySheet(sheet);
     return sheet;
 }