다음을 통해 공유


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

‘선언
Function LoadProject ( _
    lpszProjectPath As String _
) As Integer
‘사용 방법
Dim instance As IVsAsynchOpenFromScc
Dim lpszProjectPath As String
Dim returnValue As Integer

returnValue = instance.LoadProject(lpszProjectPath)
int LoadProject(
    string lpszProjectPath
)
int LoadProject(
    [InAttribute] String^ lpszProjectPath
)
abstract LoadProject : 
        lpszProjectPath:string -> int 
function LoadProject(
    lpszProjectPath : String
) : int

Parameters

  • lpszProjectPath
    Type: System.String
    [in] Physical path to the project to be loaded from source control.

Return Value

Type: System.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

IVsAsynchOpenFromScc Members

Microsoft.VisualStudio.Shell.Interop Namespace