IOleComponent2.OnHandleSignaled 方法

当重写在派生类,使组件响应在等待句柄的信号。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.9.0(在 Microsoft.VisualStudio.Shell.Interop.9.0.dll 中)

语法

声明
Function OnHandleSignaled ( _
    nHandle As UInteger, _
    pvLoopData As IntPtr, _
    <OutAttribute> ByRef pfContinue As Boolean _
) As Integer
int OnHandleSignaled(
    uint nHandle,
    IntPtr pvLoopData,
    out bool pfContinue
)

参数

  • nHandle
    类型:System.UInt32
    终止处理的从零开始的索引。
  • pfContinue
    类型:System.Boolean%
    当此方法返回时,包含 true 使此元素重新输入消息循环或false 立即退出消息循环。

返回值

类型:System.Int32
指示操作状态的错误代码 (hresult) 值。

备注

nHandle 在返回的数组包含等待句柄的索引,当组件管理器调用 GetWaitHandlesAndTimeout

如果 pfContinue 是 true,组件管理器调用 GetWaitHandlesAndTimeout 更新等待句柄和超时此元素的,然后还原消息循环。

此方法调用与 FPushMessageLoop 调用方法的线程,在将此元素添加到消息循环。

.NET Framework 安全性

请参见

参考

IOleComponent2 接口

Microsoft.VisualStudio.Shell.Interop 命名空间

IOleComponentManager