IVsAsynchronousProjectCreate::CreateProjectAsync Method (Guid, String^, String^, String^, UInt32)
Visual Studio 2015
Creates a project asynchronously.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
IVsTask^ CreateProjectAsync( [InAttribute] Guid% rguidProjectID, String^ filename, String^ location, String^ pszName, unsigned int flags )
Parameters
- rguidProjectID
-
Type:
System::Guid
[in] GUID of the project in the solution file (the same as what is returned by GetGuidOfProject).
- filename
-
Type:
System::String^
[in] Filename of the project.
- location
-
Type:
System::String^
[in] Location of the project.
- pszName
-
Type:
System::String^
[in] Project name.
- flags
-
Type:
System::UInt32
[in] Creation flags. Not used.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop::IVsTask^The task that identifies the project that was created.
The result of the IVsTask should be a Variant of type VT_UNKNOWN and is queried (QueryInterface) for the IVsHierarchy of the created project. The task may return E_ABORT to indicate the project creation was canceled. The GetResult method on the task returns a failed HRESULT for any failure encountered during the asynchronous project creation. Otherwise the result is returned in the VARIANT out parameter of the IVsTask.GetResult method.
Show: