IVsShell.AdviseShellPropertyChanges(IVsShellPropertyEvents, UInt32) 方法

定义

使客户端能够接收对环境的属性更改的通知。

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

参数

pSink
IVsShellPropertyEvents

中指向接口的指针 IVsShellPropertyEvents

pdwCookie
UInt32

弄指向客户端的抽象句柄的指针,将在环境属性发生更改时收到通知

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

HRESULT IVsShell::AdviseShellPropertyChanges(  
   [in] IVsShellPropertyEvents *pSink,  
   [out] VSCOOKIE *pdwCookie  
);  

pdwCookie 会传递到对的调用 UnadviseShellPropertyChanges

适用于