Share via


IDTWizard.Execute Method

Definition

Overloads

Execute(Object, Int32, Object[], Object[], wizardResult)

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

Execute(Object, IntPtr, Object[], Object[], wizardResult)

Execute(Object, Int32, Object[], Object[], wizardResult)

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

void Execute(winrt::Windows::Foundation::IInspectable const & Application, int hwndOwner, std::Array <winrt::Windows::Foundation::IInspectable const &> const & & ContextParams, std::Array <winrt::Windows::Foundation::IInspectable const &> const & & CustomParams, [Runtime::InteropServices::Out] EnvDTE::wizardResult & retval);

Parameters

Application
Object

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

hwndOwner
Int32

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

ContextParams
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.

CustomParams
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.

retval
wizardResult

A wizardResult constant specifying the results of the wizard.

Attributes

Remarks

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

Applies to

Execute(Object, IntPtr, Object[], Object[], wizardResult)

public:
 void Execute(System::Object ^ Application, IntPtr hwndOwner, cli::array <System::Object ^> ^ % ContextParams, cli::array <System::Object ^> ^ % CustomParams, [Runtime::InteropServices::Out] EnvDTE::wizardResult % retval);

Parameters

Application
Object
hwndOwner
IntPtr
ContextParams
Object[]
CustomParams
Object[]
retval
wizardResult
Attributes

Applies to