获取关联的窗口。
命名空间: 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 IOleComponent2Private.HwndGetWindow
IntPtr IOleComponent2Private.HwndGetWindow(
uint dwWhich,
uint dwReserved
)
参数
- dwWhich
类型:System.UInt32
从 _OLECWINDOW的值。
- dwReserved
类型:System.UInt32
保留。
返回值
类型:System.IntPtr
始终返回 Zero。
实现
IOleComponent2Private.HwndGetWindow(UInt32, UInt32)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。