Metoda IVsSolutionEvents2.OnQueryCloseSolution — (Object, Int32)
Kwerendy nasłuchiwanie klientów czy roztwór może być zamknięty.
Przestrzeń nazw: Microsoft.VisualStudio.Shell.Interop
Zestaw: Microsoft.VisualStudio.Shell.Interop (w Microsoft.VisualStudio.Shell.Interop.dll)
Składnia
int OnQueryCloseSolution(
object pUnkReserved,
ref int pfCancel
)
int OnQueryCloseSolution(
Object^ pUnkReserved,
int% pfCancel
)
abstract OnQueryCloseSolution :
pUnkReserved:Object *
pfCancel:int byref -> int
Function OnQueryCloseSolution (
pUnkReserved As Object,
ByRef pfCancel As Integer
) As Integer
Parametry
- pUnkReserved
[w] Zarezerwowane do użytku w przyszłości.
- pfCancel
[out] true , jeśli klient odrzuciła zamknięcia roztworu.falseJeśli klient zatwierdzone zamknięcia roztworu.
Wartość zwracana
Type: System.Int32
Jeśli metoda się powiedzie, zwraca S_OK.Jeśli nie powiedzie się, zwraca kod błędu.
Implementuje
IVsSolutionEvents.OnQueryCloseSolution(Object, Int32)
Uwagi
Podpis COM
Z vsshell.idl:
HRESULT IVsSolutionEvents2::OnQueryCloseSolution(
[in] IUnknown *pUnkReserved,
[in,out] BOOL *pfCancel
);
Zobacz też
Interfejs IVsSolutionEvents2
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop
Powrót do początku