IVsSolutionEvents2.OnQueryCloseSolution(Object, Int32) Método

Definição

Consulta clientes ouvindo se a solução pode ser fechada.

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

Parâmetros

pUnkReserved
Object

no Reservado para uso futuro.

pfCancel
Int32

[fora] true Se o cliente proibiu o fechamento da solução. false Se o cliente aprovou o fechamento da solução.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Implementações

Comentários

Assinatura COM

De VSShell. idl:

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

Aplica-se a