Compartir a través de


IVsAsynchronousProjectCreate.OnBeforeCreateProjectAsync Method

Called if canOpenAsync from CanCreateProjectAsynchronously is not VARIANT_FALSE and if the project has been successfully scheduled for background loading.

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

Syntax

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

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.

Remarks

The call to this method should occur during the synchronous portion of the solution load and allows project factories to start pre-emptive, concurrent and non-blocking work to improve the performance of project loading.

.NET Framework Security

See Also

Reference

IVsAsynchronousProjectCreate Interface

Microsoft.VisualStudio.Shell.Interop Namespace