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)

Syntax

'Declaration
Sub Execute ( _
    Application As Object, _
    hwndOwner As Integer, _
    ByRef ContextParams As Object(), _
    ByRef CustomParams As Object(), _
    <OutAttribute> ByRef retval As wizardResult _
)
void Execute(
    Object Application,
    int hwndOwner,
    ref Object[] ContextParams,
    ref Object[] CustomParams,
    out wizardResult retval
)
void Execute(
    [InAttribute] Object^ Application, 
    [InAttribute] int hwndOwner, 
    [InAttribute] array<Object^>^% ContextParams, 
    [InAttribute] array<Object^>^% CustomParams, 
    [InAttribute] [OutAttribute] wizardResult% retval
)
abstract Execute : 
        Application:Object * 
        hwndOwner:int * 
        ContextParams:Object[] byref * 
        CustomParams:Object[] byref * 
        retval:wizardResult byref -> unit
function Execute(
    Application : Object, 
    hwndOwner : int, 
    ContextParams : Object[], 
    CustomParams : Object[], 
    retval : wizardResult
)

Parameters

  • Application
    Type: System.Object

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

  • hwndOwner
    Type: System.Int32

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

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

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

Remarks

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

.NET Framework Security

See Also

Reference

IDTWizard Interface

EnvDTE Namespace