HostedViewClosingEventArgs
HostedViewClosingEventArgs
HostedViewClosingEventArgs
HostedViewClosingEventArgs
Class
Definition
Provides a Deferral you can call when the HostedViewClosing event fires to defer the tear down of the hosted view.
public : sealed class HostedViewClosingEventArgs : IHostedViewClosingEventArgspublic sealed class HostedViewClosingEventArgs : IHostedViewClosingEventArgsPublic NotInheritable Class HostedViewClosingEventArgs Implements IHostedViewClosingEventArgs// This API is not available in Javascript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Methods
GetDeferral() GetDeferral() GetDeferral() GetDeferral()
Provides an opportunity for hosted window scenarios to defer the tear down of the window, dispatcher, and Application Single-Threaded Apartment (ASTA) thread of the hosted view.
public : Deferral GetDeferral()public Deferral GetDeferral()Public Function GetDeferral() As Deferral// This API is not available in Javascript.
Returns
The deferral you can call to defer the tear down of the hosted view.
Remarks
If the deferral is taken, the hosted view's window, dispatcher, and Application Single-Threaded Apartment (ASTA) thread will not be torn down until the deferral is completed or a timeout value expires.