IOleComponent2.OnTimeout 方法

当重写在派生类,使组件响应消息循环的超时。

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

语法

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

参数

  • pfContinue
    类型:System.Boolean%
    封送处理true 此元素重新输入消息循环; 立即退出消息循环的false 。

返回值

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

备注

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

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

.NET Framework 安全性

请参见

参考

IOleComponent2 接口

Microsoft.VisualStudio.Shell.Interop 命名空间

IOleComponentManager