Sdílet prostřednictvím


IVsAsynchOpenFromScc.IsLoadingContent(IVsHierarchy, Int32) Method

Definition

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

public:
 int IsLoadingContent(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, [Runtime::InteropServices::Out] int % pfIsLoading);
int IsLoadingContent(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, [Runtime::InteropServices::Out] int & pfIsLoading);
public int IsLoadingContent (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, out int pfIsLoading);
abstract member IsLoadingContent : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * int -> int
Public Function IsLoadingContent (pHierarchy As IVsHierarchy, ByRef pfIsLoading As Integer) As Integer

Parameters

pHierarchy
IVsHierarchy

[in] The solution or project hierarchy to check loading for.

pfIsLoading
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.

Returns

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.

Applies to