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
类型:Object指向 Visual Studio 环境的最高级别自动化对象的调度指针。
hwndOwner
类型:Int32向导窗口的父窗口的 hWnd 句柄。
ContextParams
类型:array<Object[]%元素数组,根据是从**“添加项”对话框还是“新建项目”**对话框启动向导而变化。 有关可用的值,请参见 ContextParams。
CustomParams
类型:array<Object[]%用户定义的参数数组,由向导的 .vsz 文件中的 param= 语句确定。 可以使用此数组中传递的参数自定义向导的行为和角色。
retval
类型:EnvDTE.wizardResult%指定向导结果的 wizardResult 常数。
备注
在 Execute 方法中插入希望向导运行的代码。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。