Freigeben über


IVsAsynchOpenFromScc.LoadProject Method

This method begins loading the specified project asynchronously.

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

Syntax

'Declaration
Function LoadProject ( _
    lpszProjectPath As String _
) As Integer
int LoadProject(
    string lpszProjectPath
)
int LoadProject(
    [InAttribute] String^ lpszProjectPath
)
abstract LoadProject : 
        lpszProjectPath:string -> int
function LoadProject(
    lpszProjectPath : String
) : int

Parameters

  • lpszProjectPath
    Type: String

    [in] Physical path to the project to be loaded from source control.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl

HRESULT LoadProject(
   [in] LPCOLESTR lpszProjectPath
);

The project that calls this method can poll the IsLoadingContent method to determine if the load has completed. Or the project can implement the IVsAsynchOpenFromSccProjectEvents Interface, which the source control package can call to indicate that the load is complete.

.NET Framework Security

See Also

Reference

IVsAsynchOpenFromScc Interface

Microsoft.VisualStudio.Shell.Interop Namespace