IVsMonitorSelection.AdviseSelectionEvents Yöntem (IVsSelectionEvents, UInt32)
VSPackage seçimi olay bildirimi için kaydeder.
Ad Alanı: Microsoft.VisualStudio.Shell.Interop
Derleme: Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)
Sözdizimi
int AdviseSelectionEvents(
IVsSelectionEvents pSink,
out uint pdwCookie
)
int AdviseSelectionEvents(
IVsSelectionEvents^ pSink,
[OutAttribute] unsigned int% pdwCookie
)
abstract AdviseSelectionEvents :
pSink:IVsSelectionEvents *
pdwCookie:uint32 byref -> int
Function AdviseSelectionEvents (
pSink As IVsSelectionEvents,
<OutAttribute> ByRef pdwCookie As UInteger
) As Integer
Parametreler
- pSink
[in] İşaretçi IVsSelectionEvents VSPackage için olay bildirimi Seçimi kaydetme arabirimi.
- pdwCookie
[Çıkış] Tamamlanan kayıt temsil eden bir soyut tanıtıcısı işaretçisi.
Dönüş Değeri
Type: System.Int32
Yöntem başarılı olursa, verir S_OK.Başarısız olursa, bir hata kodu döndürür.
Notlar
com imzası
Vsshell.idl:
HRESULT IVsMonitorSelection::AdviseSelectionEvents(
[in] IVsSelectionEvents *psink,
[out] VSCOOKIE *pdwCookie
);
Ayrıca bkz.
IVsMonitorSelection Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı
Başa dön