Deferral Deferral Deferral Deferral Deferral Class

Definition

Stores a DeferralCompletedHandler to be invoked upon completion of the deferral and manipulates the state of the deferral.

public : sealed class Deferral : IClosable
struct winrt::Windows::Foundation::Deferral : IClosable
public sealed class Deferral : IDisposable
Public NotInheritable Class Deferral Implements IDisposable
var deferral = new deferral(handler);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Remarks

For more information about the Deferral class, see the section about deferrals in App lifecycle and the ExtendedExecution sample.

Javascript apps should not allow navigation before completing a DeferralCompletedHandler. Doing so could cause an app to crash and should be considered a programming error.

Constructors

Deferral(DeferralCompletedHandler) Deferral(DeferralCompletedHandler) Deferral(DeferralCompletedHandler) Deferral(DeferralCompletedHandler) Deferral(DeferralCompletedHandler)

Initializes a new Deferral object and specifies a DeferralCompletedHandler to be called upon completion of the deferral.

Methods

Close() Close() Close() Close() Close()

If the DeferralCompletedHandler has not yet been invoked, this will call it and drop the reference to the delegate.

Complete() Complete() Complete() Complete() Complete()

If the DeferralCompletedHandler has not yet been invoked, this will call it and drop the reference to the delegate.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

See also