FlavoredProjectFactory::IVsProjectFactory::CanCreateProject Method (String^, UInt32, Int32)

 

Determines whether or not the project can be created.

Namespace:   Microsoft.VisualStudio.Shell.Flavor
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

private:
virtual int CanCreateProject(
	String^ fileName,
	unsigned int flags,
	[OutAttribute] int% canCreate
) sealed = IVsProjectFactory::CanCreateProject

Parameters

fileName
Type: System::String^

The name of the file.

flags
Type: System::UInt32

If used, values from the __VSCREATEPROJFLAGS enumeration.

canCreate
Type: System::Int32

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

Return Value

Type: System::Int32

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

This method calls CanCreateProject.

Return to top
Show: