IVsSolutionEvents2.OnQueryUnloadProject(IVsHierarchy, Int32) Método

Definição

Consulta clientes ouvindo se o projeto pode ser descarregado.

public:
 int OnQueryUnloadProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pRealHierarchy, [Runtime::InteropServices::Out] int % pfCancel);
int OnQueryUnloadProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pRealHierarchy, [Runtime::InteropServices::Out] int & pfCancel);
public int OnQueryUnloadProject (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pRealHierarchy, out int pfCancel);
abstract member OnQueryUnloadProject : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * int -> int
Public Function OnQueryUnloadProject (pRealHierarchy As IVsHierarchy, ByRef pfCancel As Integer) As Integer

Parâmetros

pRealHierarchy
IVsHierarchy

no Ponteiro para a IVsHierarchy interface do projeto a ser descarregado.

pfCancel
Int32

[fora] true Se o cliente vetou o descarregamento do projeto. false Se o cliente aprovou o descarregamento do projeto.

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::OnQueryUnloadProject(  
   [in] IVsHierarchy *pRealHierarchy,  
   [in,out] BOOL *pfCancel  
);  

Aplica-se a