IVsSolutionBuildManager.AdviseUpdateSolutionEvents Yöntem

Tanım

Çağıran, olaylar için dinleyici listesine ekler IVsUpdateSolutionEvents .

public:
 int AdviseUpdateSolutionEvents(Microsoft::VisualStudio::Shell::Interop::IVsUpdateSolutionEvents ^ pIVsUpdateSolutionEvents, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseUpdateSolutionEvents(Microsoft::VisualStudio::Shell::Interop::IVsUpdateSolutionEvents const & pIVsUpdateSolutionEvents, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseUpdateSolutionEvents (Microsoft.VisualStudio.Shell.Interop.IVsUpdateSolutionEvents pIVsUpdateSolutionEvents, out uint pdwCookie);
abstract member AdviseUpdateSolutionEvents : Microsoft.VisualStudio.Shell.Interop.IVsUpdateSolutionEvents * uint32 -> int
Public Function AdviseUpdateSolutionEvents (pIVsUpdateSolutionEvents As IVsUpdateSolutionEvents, ByRef pdwCookie As UInteger) As Integer

Parametreler

pIVsUpdateSolutionEvents
IVsUpdateSolutionEvents

'ndaki IVsSolutionEvents Çözüm olaylarının bildirimini isteyen nesnedeki arabirime yönelik işaretçi.

pdwCookie
UInt32

dışı Tanımlama bilgisini içeren bir çift sözcük işaretçisi.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

COM Imzası

Vsshell. IDL dosyasından:

HRESULT IVsSolutionBuildManager::AdviseUpdateSolutionEvents(  
   [in] IVsUpdateSolutionEvents *pIVsUpdateSolutionEvents,  
   [out] VSCOOKIE *pdwCookie  
);  

Çağıranın, Solution Build Manager 'ın tetiklendiği olay kümesini dinlemesine olanak sağlar IVsUpdateSolutionEvents . Bu arabirim, çözüm ve proje oluşturma için ayarlanan olayları içerir.

Bu yöntem çağrıldığında, olaylar nesneniz için bir işaretçi geçirin ve daha sonra UnadviseUpdateSolutionEvents dinlemeyi durdurmak için yönteme geçirilebileceğini belirten bir tanımlama bilgisi sağlanır.

Şunlara uygulanır