Share via


WizardForm.GetWizardPages Method

Definition

When overridden in a derived class, returns a collection of wizard pages that the wizard form contains.

protected:
 abstract cli::array <Microsoft::Web::Management::Client::Win32::WizardPage ^> ^ GetWizardPages();
protected abstract Microsoft.Web.Management.Client.Win32.WizardPage[] GetWizardPages ();
abstract member GetWizardPages : unit -> Microsoft.Web.Management.Client.Win32.WizardPage[]
Protected MustOverride Function GetWizardPages () As WizardPage()

Returns

An array of WizardPage objects that the wizard form contains.

Examples

The following example demonstrates the GetWizardPages method. In this example, the GetWizardPages method constructs three wizard pages. This code example is part of a larger example provided for the WizardForm class.

// Customize the abstract GetWizardPages.
protected override WizardPage[] GetWizardPages()
{
    return new WizardPage[]
    {
        // Create each wizard page.
        new DemoModuleWizardLoginPage(),
        new DemoModuleWizardLabelPage(),
        new DemoModuleWizardModificationPage()
    };
}
// Customize the abstract GetWizardPages.
protected override WizardPage[] GetWizardPages()
{
    return new WizardPage[]
    {
        // Create each wizard page.
        new DemoModuleWizardLoginPage(),
        new DemoModuleWizardLabelPage(),
        new DemoModuleWizardModificationPage()
    };
}

Remarks

Call this method to return a collection of wizard pages that are used in the wizard form. The collection is created within this overridden method. Each wizard page is created as a new object derived from a WizardPage object

Applies to