创建一个调味的项目。
命名空间: Microsoft.VisualStudio.Shell.Flavor
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
Private Function CreateProject ( _
fileName As String, _
___location As String, _
name As String, _
flags As UInteger, _
ByRef projectGuid As Guid, _
<OutAttribute> ByRef project As IntPtr, _
<OutAttribute> ByRef canceled As Integer _
) As Integer Implements IVsProjectFactory.CreateProject
int IVsProjectFactory.CreateProject(
string fileName,
string ___location,
string name,
uint flags,
ref Guid projectGuid,
out IntPtr project,
out int canceled
)
参数
- fileName
类型:System.String
项目文件的名称。
- ___location
类型:System.String
项目文件的路径。
- name
类型:System.String
项目的名称。
- flags
类型:System.UInt32
从 __VSCREATEPROJFLAGS的值。
- projectGuid
类型:System.Guid%
项目的接口 ID。
- project
类型:System.IntPtr%
[out] 返回指向该项目。
- canceled
类型:System.Int32%
[out] 返回 true ,如果取消了操作,否则 false。
返回值
类型:System.Int32
S_OK .
实现
IVsProjectFactory.CreateProject(String, String, String, UInt32, Guid%, IntPtr%, Int32%)
备注
此方法调用 CreateProject。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。