FlavoredProjectFactory.IVsProjectFactory.CreateProject 方法

创建一个调味的项目。

命名空间:  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
)

参数

  • projectGuid
    类型:System.Guid%
    项目的接口 ID。
  • canceled
    类型:System.Int32%
    [out] 返回 true ,如果取消了操作,否则 false。

返回值

类型:System.Int32
S_OK .

实现

IVsProjectFactory.CreateProject(String, String, String, UInt32, Guid%, IntPtr%, Int32%)

备注

此方法调用 CreateProject

.NET Framework 安全性

请参见

参考

FlavoredProjectFactory 类

Microsoft.VisualStudio.Shell.Flavor 命名空间