VsShellUtilities.GetWindowObject Method
Gets the window that exists in the specified window frame.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaração
Public Shared Function GetWindowObject ( _
windowFrame As IVsWindowFrame _
) As Window
public static Window GetWindowObject(
IVsWindowFrame windowFrame
)
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.