Compartilhar via


IVsAsynchronousProjectCreate.CreateProjectAsync Method

Definition

Creates a project asynchronously.

public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateProjectAsync(Guid % rguidProjectID, System::String ^ filename, System::String ^ location, System::String ^ pszName, System::UInt32 flags);
public Microsoft.VisualStudio.Shell.Interop.IVsTask CreateProjectAsync (ref Guid rguidProjectID, string filename, string location, string pszName, uint flags);
abstract member CreateProjectAsync : Guid * string * string * string * uint32 -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function CreateProjectAsync (ByRef rguidProjectID As Guid, filename As String, location As String, pszName As String, flags As UInteger) As IVsTask

Parameters

rguidProjectID
Guid

[in] GUID of the project in the solution file (the same as what is returned by GetGuidOfProject(IVsHierarchy, Guid)).

filename
String

[in] Filename of the project.

location
String

[in] Location of the project.

pszName
String

[in] Project name.

flags
UInt32

[in] Creation flags. Not used.

Returns

The task that identifies the project that was created.

Remarks

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.

Applies to