FlavoredProjectFactory.CanCreateProject Method

Determines whether or not the project can be created with the supplied parameters.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

声明
Protected Overridable Function CanCreateProject ( _
    fileName As String, _
    flags As UInteger _
) As Boolean
用法
Dim fileName As String
Dim flags As UInteger
Dim returnValue As Boolean

returnValue = Me.CanCreateProject(fileName, _
    flags)
protected virtual bool CanCreateProject(
    string fileName,
    uint flags
)
protected:
virtual bool CanCreateProject(
    String^ fileName, 
    unsigned int flags
)
abstract CanCreateProject : 
        fileName:string * 
        flags:uint32 -> bool 
override CanCreateProject : 
        fileName:string * 
        flags:uint32 -> bool 
protected function CanCreateProject(
    fileName : String, 
    flags : uint
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the project file name is valid, otherwise false.

.NET Framework Security

See Also

Reference

FlavoredProjectFactory Class

FlavoredProjectFactory Members

Microsoft.VisualStudio.Shell.Flavor Namespace