检索窗口与组件关联。
命名空间: 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
)
参数
- dwWhich
类型:System.UInt32
从 _OLECWINDOW的值。
- dwReserved
类型:System.UInt32
保留供将来使用。应为 0。
返回值
类型:System.IntPtr
HWND 或 nullnull 引用(在 Visual Basic 中为 Nothing) ,如果此类窗口不存在。
实现
IOleComponent.HwndGetWindow(UInt32, UInt32)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。