调用由外部项的子类型具有内部项子类型请完成其初始化工作。
命名空间: Microsoft.VisualStudio.Shell.Flavor
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
Private Function InitializeForOuter ( _
fileName As String, _
___location As String, _
name As String, _
flags As UInteger, _
ByRef guidProject As Guid, _
<OutAttribute> ByRef project As IntPtr, _
<OutAttribute> ByRef canceled As Integer _
) As Integer Implements IVsAggregatableProject.InitializeForOuter
int IVsAggregatableProject.InitializeForOuter(
string fileName,
string ___location,
string name,
uint flags,
ref Guid guidProject,
out IntPtr project,
out int canceled
)
参数
- fileName
类型:System.String
将初始化项的项目文件名。
- ___location
类型:System.String
项目文件的路径。
- name
类型:System.String
项目的名称。
- flags
类型:System.UInt32
描述的标志如何将创建或打开一个项目。值从 __VSCREATEPROJFLAGS 枚举中采用。
- guidProject
类型:System.Guid%
[] ref 项目的接口 ID。它应该是 IID_IUnknown。
- project
类型:System.IntPtr%
[out] 对项目的指针。
- canceled
类型:System.Int32%
[out] true ,如果项目被取消。
返回值
类型:System.Int32
如果方法成功, S_OK,否则错误代码。
实现
IVsAggregatableProject.InitializeForOuter(String, String, String, UInt32, Guid%, IntPtr%, Int32%)
备注
此方法调用 InitializeForOuter。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。