Compartilhar via


VsWizardClass.Execute Method

Definition

Overloads

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

Called when a wizard is launched from either the Add New Item or New Project dialog boxes.

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

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

Called when a wizard is launched from either the Add New Item or New Project dialog boxes.

public:
 virtual void Execute(System::Object ^ Application, int hwndOwner, cli::array <System::Object ^> ^ % ContextParams, cli::array <System::Object ^> ^ % CustomParams, [Runtime::InteropServices::Out] EnvDTE::wizardResult % retval) = EnvDTE::IDTWizard::Execute;
 virtual 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);
[System.Runtime.InteropServices.DispId(1)]
public virtual void Execute (object Application, int hwndOwner, ref object[] ContextParams, ref object[] CustomParams, out EnvDTE.wizardResult retval);
[<System.Runtime.InteropServices.DispId(1)>]
abstract member Execute : obj * int * Object[] * Object[] * wizardResult -> unit
override this.Execute : obj * int * Object[] * Object[] * wizardResult -> unit
Public Overridable Sub Execute (Application As Object, hwndOwner As Integer, ByRef ContextParams As Object(), ByRef CustomParams As Object(), ByRef retval As wizardResult)

Parameters

Application
Object

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

hwndOwner
Int32

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

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

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

Implements

Attributes

Remarks

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.

Applies to

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

public:
 virtual void Execute(System::Object ^ Application, IntPtr hwndOwner, cli::array <System::Object ^> ^ % ContextParams, cli::array <System::Object ^> ^ % CustomParams, [Runtime::InteropServices::Out] EnvDTE::wizardResult % retVal) = EnvDTE::IDTWizard::Execute;
[System.Runtime.InteropServices.DispId(1)]
public virtual void Execute (object Application, IntPtr hwndOwner, ref object[] ContextParams, ref object[] CustomParams, out EnvDTE.wizardResult retVal);
[<System.Runtime.InteropServices.DispId(1)>]
abstract member Execute : obj * nativeint * Object[] * Object[] * wizardResult -> unit
override this.Execute : obj * nativeint * Object[] * Object[] * wizardResult -> unit
Public Overridable Sub Execute (Application As Object, hwndOwner As IntPtr, ByRef ContextParams As Object(), ByRef CustomParams As Object(), ByRef retVal As wizardResult)

Parameters

Application
Object
hwndOwner
IntPtr

nativeint

ContextParams
Object[]
CustomParams
Object[]
retVal
wizardResult

Implements

Attributes

Applies to