Gets a window associated with the component.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Overridable Function HwndGetWindow ( _
dwWhich As UInteger, _
dwReserved As UInteger _
) As IntPtr
'使用
Dim instance As SimpleEditorView
Dim dwWhich As UInteger
Dim dwReserved As UInteger
Dim returnValue As IntPtr
returnValue = instance.HwndGetWindow(dwWhich, _
dwReserved)
public virtual IntPtr HwndGetWindow(
uint dwWhich,
uint dwReserved
)
public:
virtual IntPtr HwndGetWindow(
unsigned int dwWhich,
unsigned int dwReserved
)
public function HwndGetWindow(
dwWhich : uint,
dwReserved : uint
) : IntPtr
Parameters
dwWhich
Type: System.UInt32A value from _OLECWINDOW.
dwReserved
Type: System.UInt32Reserved for future use; should be 0.
Return Value
Type: System.IntPtr
A pointer to the desired window or a null reference (Nothing in Visual Basic) if no such window exists.
Implements
IOleComponent.HwndGetWindow(UInt32, UInt32)
Remarks
By default this method is not implemented and returns a a null reference (Nothing in Visual Basic) pointer.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.