IVCWizCtlUI.CanCreateNewProjectAtLocation 方法

指示是否可在指定位置创建新项目。

命名空间:  Microsoft.VisualStudio.VsWizard
程序集:  Microsoft.VisualStudio.VsWizard(在 Microsoft.VisualStudio.VsWizard.dll 中)

语法

声明
Function CanCreateNewProjectAtLocation ( _
    fCreateNewSolution As Boolean, _
    bstrFullProjectFilePath As String, _
    fDeleteDirectory As Boolean _
) As Boolean
bool CanCreateNewProjectAtLocation(
    bool fCreateNewSolution,
    string bstrFullProjectFilePath,
    bool fDeleteDirectory
)
bool CanCreateNewProjectAtLocation(
    [InAttribute] bool fCreateNewSolution, 
    [InAttribute] String^ bstrFullProjectFilePath, 
    [InAttribute] bool fDeleteDirectory
)
abstract CanCreateNewProjectAtLocation : 
        fCreateNewSolution:bool * 
        bstrFullProjectFilePath:string * 
        fDeleteDirectory:bool -> bool
function CanCreateNewProjectAtLocation(
    fCreateNewSolution : boolean, 
    bstrFullProjectFilePath : String, 
    fDeleteDirectory : boolean
) : boolean

参数

  • fCreateNewSolution
    类型:Boolean

    必需。 如果随项目创建新解决方案,则为 true;否则为 false。

  • bstrFullProjectFilePath
    类型:String

    必需。 一个字符串,其中包含项目的完全限定路径和文件名。

  • fDeleteDirectory
    类型:Boolean

    必需。 如果要删除项目的临时目录,则为 true;否则为 false。

返回值

类型:Boolean
如果可使用指定目录和名称创建项目,则为 true;否则为 false。

.NET Framework 安全性

请参阅

参考

IVCWizCtlUI 接口

Microsoft.VisualStudio.VsWizard 命名空间