Partilhar via


IVsSolution2.CanCreateNewProjectAtLocation(Int32, String, Int32) Method

Definition

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

public:
 int CanCreateNewProjectAtLocation(int fCreateNewSolution, System::String ^ pszFullProjectFilePath, [Runtime::InteropServices::Out] int % pfCanCreate);
int CanCreateNewProjectAtLocation(int fCreateNewSolution, std::wstring const & pszFullProjectFilePath, [Runtime::InteropServices::Out] int & pfCanCreate);
public int CanCreateNewProjectAtLocation (int fCreateNewSolution, string pszFullProjectFilePath, out int pfCanCreate);
abstract member CanCreateNewProjectAtLocation : int * string * int -> int
Public Function CanCreateNewProjectAtLocation (fCreateNewSolution As Integer, pszFullProjectFilePath As String, ByRef pfCanCreate As Integer) As Integer

Parameters

fCreateNewSolution
Int32

[in] If true, then a new solution will be created.

pszFullProjectFilePath
String

[in] Project path (including file name and extension) of the location to create the new project.

pfCanCreate
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.

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolution2::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. It is used primarily for wizards.

Applies to