WizardForm.CurrentPage Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current page that is displayed in the wizard form.
protected:
property Microsoft::Web::Management::Client::Win32::WizardPage ^ CurrentPage { Microsoft::Web::Management::Client::Win32::WizardPage ^ get(); };
protected Microsoft.Web.Management.Client.Win32.WizardPage CurrentPage { get; }
member this.CurrentPage : Microsoft.Web.Management.Client.Win32.WizardPage
Protected ReadOnly Property CurrentPage As WizardPage
Property Value
The current WizardPage object that is displayed in the wizard form.
Examples
The following example demonstrates the CurrentPage property. This example checks whether the user has already been validated (by determining whether the user is on a specific wizard page) and sets the TaskCaption property to a specified string. This code example is part of a larger example provided for the WizardForm class.
// Customize the OnPageChanged method
protected override void OnPageChanged(EventArgs e)
{
// To get to the LabelPage the user has been validated.
if (this.CurrentPage.Name == "demoModuleWizardLabelPage")
{
this.TaskCaption = "User is signed in";
}
base.OnPageChanged(e);
}
// Customize the OnPageChanged method
protected override void OnPageChanged(EventArgs e)
{
// To get to the LabelPage the user has been validated.
if (this.CurrentPage.Name == "demoModuleWizardLabelPage")
{
this.TaskCaption = "User is signed in";
}
base.OnPageChanged(e);
}
Remarks
This property contains the current page that is displayed in the wizard form.