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, IDeferral
struct winrt::Windows::Foundation::Deferral : IClosable, IDeferral
public sealed class Deferral : IDisposable, IDeferral
Public NotInheritable Class Deferral Implements IDisposable, IDeferral
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

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