IVsSolutionEvents.OnQueryCloseSolution(Object, Int32) Méthode

Définition

Interroge les clients à l'écoute pour savoir si la solution peut être fermée.

public:
 int OnQueryCloseSolution(System::Object ^ pUnkReserved, [Runtime::InteropServices::Out] int % pfCancel);
int OnQueryCloseSolution(winrt::Windows::Foundation::IInspectable const & pUnkReserved, [Runtime::InteropServices::Out] int & pfCancel);
public int OnQueryCloseSolution (object pUnkReserved, out int pfCancel);
abstract member OnQueryCloseSolution : obj * int -> int
Public Function OnQueryCloseSolution (pUnkReserved As Object, ByRef pfCancel As Integer) As Integer

Paramètres

pUnkReserved
Object

[in] Réservé pour une future utilisation.

pfCancel
Int32

[out] true si le client a interdit la fermeture de la solution. false si le client a approuvé la fermeture de la solution.

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 vsshell. idl :

HRESULT IVsSolutionEvents::OnQueryCloseSolution(  
   [in] IUnknown *pUnkReserved,  
   [in,out] BOOL *pfCancel  
);  

S’applique à