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, IDeferralpublic sealed class Deferral : IDisposable, IDeferralPublic NotInheritable Class Deferral Implements IDisposable, IDeferral// You can use this class in JavaScript.
- Attributes
| 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)
Initializes a new Deferral object and specifies a DeferralCompletedHandler to be called upon completion of the deferral.
public : Deferral(DeferralCompletedHandler handler)public Deferral(DeferralCompletedHandler handler)Public Sub New(handler As DeferralCompletedHandler)// You can use this method in JavaScript.
- handler
- DeferralCompletedHandler DeferralCompletedHandler DeferralCompletedHandler DeferralCompletedHandler
A DeferralCompletedHandler to be called upon completion of the deferral.
Methods
Close() Close() Close() Close()
If the DeferralCompletedHandler has not yet been invoked, this will call it and drop the reference to the delegate.
public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
Remarks
If the DeferralCompletedHandler has not yet been invoked, this will call it and drop the reference to the delegate. Otherwise, since Close must be safe to call multiple times, this will simply succeed without doing anything.
- See Also
Complete() Complete() Complete() Complete()
If the DeferralCompletedHandler has not yet been invoked, this will call it and drop the reference to the delegate.
public : void Complete()public void Complete()Public Function Complete() As void// You can use this method in JavaScript.
Remarks
If the DeferralCompletedHandler has not yet been invoked, this will call it and drop the reference to the delegate. Otherwise, it will throw a programming error exception.
- See Also