Export (0) Print
Expand All

IVsSolution.CanCreateNewProjectAtLocation Method

Determines whether a new project can be created at a given location.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int CanCreateNewProjectAtLocation(
	int fCreateNewSolution,
	string pszFullProjectFilePath,
	out int pfCanCreate


Type: System.Int32
[in] If true, then a new solution will be created.
Type: System.String
[in] Project path (including file name and extension) of the location to create the new project.
Type: System.Int32
[out] If true, then a new project of a given name can be created at the specified location. If false, then a project of the same name already exists at the specified location.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsSolution::CanCreateNewProjectAtLocation(
   [in] BOOL fCreateNewSolution,
   [in] LPCOLESTR pszFullProjectFilePath,
   [out] BOOL *pfCanCreate

This method determines whether a new project with the given name can be created at the given location. Used primarily for wizards.

Community Additions

© 2014 Microsoft