VsWizardClass.Execute 方法

當從啟動精靈時呼叫Add New ItemNew Project的對話方塊。

命名空間:  Microsoft.VisualStudio.VsWizard
組件:  Microsoft.VisualStudio.VsWizard (在 Microsoft.VisualStudio.VsWizard.dll 中)

語法

'宣告
Public Overridable Sub Execute ( _
    Application As Object, _
    hwndOwner As Integer, _
    ByRef ContextParams As Object(), _
    ByRef CustomParams As Object(), _
    <OutAttribute> ByRef retval As wizardResult _
)
public virtual void Execute(
    Object Application,
    int hwndOwner,
    ref Object[] ContextParams,
    ref Object[] CustomParams,
    out wizardResult retval
)
public:
virtual 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 
override Execute : 
        Application:Object * 
        hwndOwner:int * 
        ContextParams:Object[] byref * 
        CustomParams:Object[] byref * 
        retval:wizardResult byref -> unit 
public function Execute(
    Application : Object, 
    hwndOwner : int, 
    ContextParams : Object[], 
    CustomParams : Object[], 
    retval : wizardResult
)

參數

  • Application
    型別:System.Object
    必要項。分派的最高層的自動化物件指標Visual Studio環境。
  • hwndOwner
    型別:System.Int32
    必要項。精靈視窗的父視窗 hWnd 控制代碼。
  • ContextParams
    型別:array<System.Object[]%
    必要項。不盡相同,視您的精靈從啟動的元素的陣列加入新項目新的專案的對話方塊。如需可用值清單,請參閱 ContextParams 列舉。
  • CustomParams
    型別:array<System.Object[]%
    必要項。使用者定義參數的陣列,由精靈的 .vsz 檔案中的 param= 陳述式判斷。您可以使用這個陣列所傳遞的參數來自訂精靈的行為和角色。如需可用值清單,請參閱預先定義的 CustomWizard 符號。

實作

IDTWizard.Execute(Object, Int32, array<Object[]%, array<Object[]%, wizardResult%)

備註

Execute精靈的撰寫者若要顯示適當的精靈來執行。時從啟動精靈時,它會呼叫加入新項目新的專案的對話方塊。

.NET Framework 安全性

請參閱

參考

VsWizardClass 類別

Microsoft.VisualStudio.VsWizard 命名空間

其他資源

設計精靈

Visual C++ 擴充性物件模型