Udostępnij za pośrednictwem


FlavoredProjectFactory.IVsProjectFactory.CanCreateProject Method

Definition

Determines whether or not the project can be created.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsProjectFactory.CanCreateProject(System::String ^ fileName, System::UInt32 flags, [Runtime::InteropServices::Out] int % canCreate) = Microsoft::VisualStudio::Shell::Interop::IVsProjectFactory::CanCreateProject;
int Microsoft.VisualStudio.Shell.Interop.IVsProjectFactory.CanCreateProject(std::wstring const & fileName, unsigned int flags, [Runtime::InteropServices::Out] int & canCreate);
int IVsProjectFactory.CanCreateProject (string fileName, uint flags, out int canCreate);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsProjectFactory.CanCreateProject : string * uint32 * int -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsProjectFactory.CanCreateProject : string * uint32 * int -> int
Function CanCreateProject (fileName As String, flags As UInteger, ByRef canCreate As Integer) As Integer Implements IVsProjectFactory.CanCreateProject

Parameters

fileName
String

The name of the file.

flags
UInt32

If used, values from the __VSCREATEPROJFLAGS enumeration.

canCreate
Int32

[out] Returns true if the project can be created, otherwise false.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

This method calls CanCreateProject.

Applies to