IVsCommonMessagePump.SetTimeout 方法

指定最长时间 (以毫秒为单位) 等待对信号的对象。

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

语法

声明
Function SetTimeout ( _
    dwTimeoutInMilliseconds As UInteger _
) As Integer
int SetTimeout(
    uint dwTimeoutInMilliseconds
)

参数

  • dwTimeoutInMilliseconds
    类型:System.UInt32
    最长时间 (以毫秒为单位)。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

方法返回,如果间隔过后,因此,即使 fWaitForAllObjects 参数指定的条件未得到满足。如果 dwMilliseconds 为零,则测试方法指定对象的状态并立即返回。如果参数是无限大的 (0xFFFFFFFF),方法超时间隔从段。

.NET Framework 安全性

请参见

参考

IVsCommonMessagePump 接口

Microsoft.VisualStudio.Shell.Interop 命名空间