Share via


IVsAsynchronousProjectCreate.CreateProjectAsync Method

Creates a project asynchronously.

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

Syntax

'Declaration
Function CreateProjectAsync ( _
    ByRef rguidProjectID As Guid, _
    filename As String, _
    location As String, _
    pszName As String, _
    flags As UInteger _
) As IVsTask
IVsTask CreateProjectAsync(
    ref Guid rguidProjectID,
    string filename,
    string location,
    string pszName,
    uint flags
)
IVsTask^ CreateProjectAsync(
    [InAttribute] Guid% rguidProjectID, 
    [InAttribute] String^ filename, 
    [InAttribute] String^ location, 
    [InAttribute] String^ pszName, 
    [InAttribute] unsigned int flags
)
abstract CreateProjectAsync : 
        rguidProjectID:Guid byref * 
        filename:string * 
        location:string * 
        pszName:string * 
        flags:uint32 -> IVsTask
function CreateProjectAsync(
    rguidProjectID : Guid, 
    filename : String, 
    location : String, 
    pszName : String, 
    flags : uint
) : IVsTask

Parameters

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
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.

.NET Framework Security

See Also

Reference

IVsAsynchronousProjectCreate Interface

Microsoft.VisualStudio.Shell.Interop Namespace