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

 

Determines whether a new project can be created.

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

int CanCreateProject(
	String^ pszFilename,
	unsigned int grfCreateFlags,
	[OutAttribute] int% pfCanCreate
)

Parameters

pszFilename
Type: System::String^

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

grfCreateFlags
Type: System::UInt32

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

pfCanCreate
Type: System::Int32

[out] true if the project can be created.

Return Value

Type: System::Int32

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

From vsshell.idl:

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