Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

int IsLoadingContent(
	IVsHierarchy pHierarchy,
	out int pfIsLoading
)

Parameters

pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy

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

pfIsLoading
Type: System.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: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Show:
© 2015 Microsoft