IDTWizard.Execute 方法
更新:2007 年 11 月
發生於從 [加入項目] 或 [新增專案] 對話方塊啟動精靈時。
命名空間: 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 _
)
Dim instance As IDTWizard
Dim Application As Object
Dim hwndOwner As Integer
Dim ContextParams As Object()
Dim CustomParams As Object()
Dim retval As wizardResult
instance.Execute(Application, hwndOwner, _
ContextParams, CustomParams, retval)
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
)
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[]%依據精靈是從 [加入項目] 或是從 [新增專案] 對話方塊啟動而有所不同的元素陣列。如需可用值的詳細資訊,請參閱 可啟動精靈的內容參數。
CustomParams
型別:array<System.Object[]%使用者定義參數的陣列,由精靈的 .vsz 檔案中的 param= 陳述式判斷。您可以使用這個陣列所傳遞的參數來自訂精靈的行為和角色。
retval
型別:EnvDTE.wizardResult%wizardResult 常數,指定精靈的結果。
備註
在 Execute 方法中插入您想要精靈執行的程式碼。
使用權限
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。