Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Closes the specified window.
Namespace: Microsoft.Windows.Shell
Assembly: Microsoft.Windows.Shell (in Microsoft.Windows.Shell.dll)
Syntax
'Declaration
Public Shared Sub CloseWindow ( _
window As Window _
)
public static void CloseWindow(
Window window
)
public:
static void CloseWindow(
Window^ window
)
static member CloseWindow :
window:Window -> unit
public static function CloseWindow(
window : Window
)
Parameters
- window
Type: System.Windows.Window
The window to close.
.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.