Execute Method
Collapse the table of content
Expand the table of content

IDTWizard::Execute Method (Object^, Int32, array<Object^>^, array<Object^>^, wizardResult)


Occurs when a wizard is launched from either the Add Item or the New Project dialog box.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

void Execute(
	Object^ Application,
	int hwndOwner,
	[InAttribute] array<Object^>^% ContextParams,
	[InAttribute] array<Object^>^% CustomParams,
	wizardResult% retval


Type: System::Object^

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

Type: System::Int32

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

Type: array<System::Object^>^

An array of elements that vary depending on whether your wizard is launched from the Add Items or the New Project dialog box. See ContextParams for available values.

Type: array<System::Object^>^

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.

Type: EnvDTE::wizardResult

A wizardResult constant specifying the results of the wizard.

Insert the code you want the wizard to run in the Execute method.

Return to top
© 2015 Microsoft