Sdílet prostřednictvím


IVsProjectFactory.CanCreateProject(String, UInt32, Int32) Method

Definition

Determines whether a new project can be created.

public:
 int CanCreateProject(System::String ^ pszFilename, System::UInt32 grfCreateFlags, [Runtime::InteropServices::Out] int % pfCanCreate);
int CanCreateProject(std::wstring const & pszFilename, unsigned int grfCreateFlags, [Runtime::InteropServices::Out] int & pfCanCreate);
public int CanCreateProject (string pszFilename, uint grfCreateFlags, out int pfCanCreate);
abstract member CanCreateProject : string * uint32 * int -> int
Public Function CanCreateProject (pszFilename As String, grfCreateFlags As UInteger, ByRef pfCanCreate As Integer) As Integer

Parameters

pszFilename
String

[in] File name of the project you are trying to create.

grfCreateFlags
UInt32

[in] Flags whose values are taken from the __VSCREATEPROJFLAGS enumeration.

pfCanCreate
Int32

[out] true if the project can be created.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsProjectFactory::CanCreateProject(  
   [in] LPCOLESTR pszFilename,  
   [in] VSCREATEPROJFLAGS grfCreateFlags,  
   [out] BOOL *pfCanCreate  
);  

Applies to