Share via


IVsAsynchOpenFromScc.IsLoadingContent Method

This method determines if loading is complete for a solution or project being loaded asynchronously.

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

Syntax

'Declaration
Function IsLoadingContent ( _
    pHierarchy As IVsHierarchy, _
    <OutAttribute> ByRef pfIsLoading As Integer _
) As Integer
int IsLoadingContent(
    IVsHierarchy pHierarchy,
    out int pfIsLoading
)
int IsLoadingContent(
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [OutAttribute] int% pfIsLoading
)
abstract IsLoadingContent : 
        pHierarchy:IVsHierarchy * 
        pfIsLoading:int byref -> int
function IsLoadingContent(
    pHierarchy : IVsHierarchy, 
    pfIsLoading : int
) : int

Parameters

  • pfIsLoading
    Type: Int32%

    [out] Returns nonzero (TRUE) if the hierarchy's contents are still being loaded from source control. Otherwise, returns zero (FALSE), indicating that loading is complete.

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 IsLoadingContent(
   [in] IVsHierarchy *pHierarchy,
   [out] BOOL *pfIsLoading
);

An alternative method for a project to determine if a load has completed is to implement the IVsAsynchOpenFromSccProjectEvents interface and wait for the source control package to call the OnLoadComplete method.

.NET Framework Security

See Also

Reference

IVsAsynchOpenFromScc Interface

Microsoft.VisualStudio.Shell.Interop Namespace