IVsShell.AdviseShellPropertyChanges(IVsShellPropertyEvents, UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使客户端能够接收对环境的属性更改的通知。
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
弄指向客户端的抽象句柄的指针,将在环境属性发生更改时收到通知
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsShell::AdviseShellPropertyChanges(
[in] IVsShellPropertyEvents *pSink,
[out] VSCOOKIE *pdwCookie
);
这 pdwCookie 会传递到对的调用 UnadviseShellPropertyChanges 。