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

  • rguidProjectID
    Type: Guid%

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

  • filename
    Type: String

    [in] Filename of the project.

  • location
    Type: String

    [in] Location of the project.

  • pszName
    Type: String

    [in] Project name.

  • flags
    Type: UInt32

    [in] Creation flags. Not used.

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