Share via


IDTWizard.Execute 方法

發生於從 [加入項目] 或 [新增專案] 對話方塊啟動精靈時。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
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
)

參數

  • Application
    型別:System.Object
    指向 Visual Studio 環境最高層級 Automation 物件的分派指標。
  • hwndOwner
    型別:System.Int32
    精靈視窗的父視窗 hWnd 控制代碼。
  • ContextParams
    型別:array<System.Object[]%
    依據精靈是從 [加入項目] 或是從 [新增專案] 對話方塊啟動而有所不同的元素陣列。如需可用值的詳細資訊,請參閱 ContextParams。
  • CustomParams
    型別:array<System.Object[]%
    使用者定義參數的陣列,由精靈的 .vsz 檔案中的 param= 陳述式判斷。您可以使用這個陣列所傳遞的參數來自訂精靈的行為和角色。

備註

在 Execute 方法中插入您想要精靈執行的程式碼。

.NET Framework 安全性

請參閱

參考

IDTWizard 介面

EnvDTE 命名空間