VsWizardClass.Execute Method (Object, Int32, Object[], Object[], wizardResult)

 

Called when a wizard is launched from either the or dialog boxes.46DFB1B3-A2B4-4D50-B626-6C05CA0BD60EE09F48BC-DA7D-45AF-9AC0-A012E03D0675

Namespace:   Microsoft.VisualStudio.VsWizard
Assembly:  Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)

public virtual void Execute(
	object Application,
	int hwndOwner,
	[InAttribute] ref object[] ContextParams,
	[InAttribute] ref object[] CustomParams,
	ref wizardResult retval
)

Parameters

Application
Type: System.Object

Required. A dispatch pointer to the highest-level automation object for the Visual Studio environment.

hwndOwner
Type: System.Int32

Required. The hWnd handle for the parent of the wizard's window.

ContextParams
Type: System.Object[]

Required. An array of elements that vary, depending on whether your wizard is launched from the Add New Item or New Project dialog boxes. See ContextParams Enum for a list of available values.

CustomParams
Type: System.Object[]

Required. An array of user-defined parameters, determined by the param= statements in the wizard's .vsz file. You can use the parameters passed in this array to customize a wizard's behavior and role. See Predefined CustomWizard Symbols for a list of available values.

retval
Type: EnvDTE.wizardResult

Result of the action. A value from the wizardResult enumeration.

Execute is implemented by a wizard writer to display the appropriate wizard. It is called when a wizard is launched from either the Add New Item or the New Project dialog boxes.

Return to top
Show: