IVsAsynchOpenFromScc.IsLoadingContent(IVsHierarchy, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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.