VsShellUtilities.GetWindowObject Method
Gets the window that exists in the specified window frame.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
Public Shared Function GetWindowObject ( _
windowFrame As IVsWindowFrame _
) As Window
public static Window GetWindowObject(
IVsWindowFrame windowFrame
)
public:
static Window^ GetWindowObject(
IVsWindowFrame^ windowFrame
)
static member GetWindowObject :
windowFrame:IVsWindowFrame -> Window
public static function GetWindowObject(
windowFrame : IVsWindowFrame
) : Window
Parameters
- windowFrame
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame
The IVsWindowFrame interface for the window frame.
Return Value
Type: EnvDTE.Window
The Window, if there is an object of that type in the frame; otherwise, null.
.NET Framework Security
- 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.