IVsAsynchOpenFromScc.IsLoadingContent(IVsHierarchy, Int32) Méthode

Définition

Cette méthode détermine si le chargement est complet pour une solution ou un projet étant chargé de façon asynchrone.

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

Paramètres

pHierarchy
IVsHierarchy

[in] Hiérarchie de solution ou de projet pour contrôler le chargement.

pfIsLoading
Int32

[out] Retourne une valeur différente de zéro (TRUE) si le contenu de la hiérarchie est toujours chargé à partir du contrôle de code source. Sinon, retourne zéro (FALSE), indiquant que le chargement terminé.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Signature COM

À partir de vsshell80. idl

HRESULT IsLoadingContent(  
   [in] IVsHierarchy *pHierarchy,  
   [out] BOOL *pfIsLoading  
);  

Une autre méthode permettant à un projet de déterminer si un chargement est terminé consiste à implémenter l' IVsAsynchOpenFromSccProjectEvents interface et à attendre que le package de contrôle de code source appelle la OnLoadComplete méthode.

S’applique à