Export (0) Print
Expand All

IDTWizard.Execute Method

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 (
	[InAttribute] Object Application,
	[InAttribute] int hwndOwner,
	[InAttribute] ref Object[] ContextParams,
	[InAttribute] ref Object[] CustomParams,
	[InAttribute] out wizardResult retval
)
void Execute (
	/** @attribute InAttribute() */ Object Application, 
	/** @attribute InAttribute() */ int hwndOwner, 
	/** @attribute InAttribute() */ /** @ref */ Object[] ContextParams, 
	/** @attribute InAttribute() */ /** @ref */ Object[] CustomParams, 
	/** @attribute InAttribute() */ /** @attribute OutAttribute() */ /** @ref */ wizardResult retval
)
JScript does not support passing value-type arguments by reference.

Parameters

Application

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

hwndOwner

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

ContextParams

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.

CustomParams

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.

retval

A wizardResult constant specifying the results of the wizard.

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

Community Additions

ADD
Show:
© 2014 Microsoft