CommonMessagePump.IOleComponent.HwndGetWindow 方法

检索窗口与组件关联。

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

语法

声明
Private Function HwndGetWindow ( _
    dwWhich As UInteger, _
    dwReserved As UInteger _
) As IntPtr Implements IOleComponent.HwndGetWindow
IntPtr IOleComponent.HwndGetWindow(
    uint dwWhich,
    uint dwReserved
)

参数

  • dwReserved
    类型:System.UInt32
    保留供将来使用。应为 0。

返回值

类型:System.IntPtr
HWND 或 nullnull 引用(在 Visual Basic 中为 Nothing) ,如果此类窗口不存在。

实现

IOleComponent.HwndGetWindow(UInt32, UInt32)

.NET Framework 安全性

请参见

参考

CommonMessagePump 类

Microsoft.VisualStudio.Shell 命名空间