HostedViewClosingEventArgs.GetDeferral Method

Definition

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:
 virtual Deferral ^ GetDeferral() = GetDeferral;
Deferral GetDeferral();
public Deferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As Deferral

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.

Applies to