IWindowProvider.Close Method ()


Attempts to close the window.

Namespace:   System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

void Close()

Exception Condition

When the control is unable to perform the requested action.


When the target element is no longer available (for example, the window has closed).

Close must return immediately without blocking.

Close raises the WindowClosedEvent event. If possible, the event should be raised after the control has completed its associated action.

When called on a split pane control, this method will close the pane and remove the associated split. This method might also close all other panes, depending on implementation.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top