Deferral Class
Definition
Stores a DeferralCompletedHandler to be invoked upon completion of the deferral and manipulates the state of the deferral.
public ref class Deferral sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Foundation.IDeferralFactory, 65536, Windows.Foundation.FoundationContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class Deferral final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Foundation.IDeferralFactory, 65536, "Windows.Foundation.FoundationContract")]
class Deferral final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Foundation.IDeferralFactory), 65536, typeof(Windows.Foundation.FoundationContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class Deferral
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Foundation.IDeferralFactory), 65536, "Windows.Foundation.FoundationContract")]
public sealed class Deferral
function Deferral(handler)
Public NotInheritable Class Deferral
- Inheritance
-
Deferral
- Attributes
- Implements
Windows 10 requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.FoundationContract (introduced in v1.0)
|
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) |
Initializes a new Deferral object and specifies a DeferralCompletedHandler to be called upon completion of the deferral. |
Methods
Close() |
If the DeferralCompletedHandler has not yet been invoked, this will call it and drop the reference to the delegate. |
Complete() |
If the DeferralCompletedHandler has not yet been invoked, this will call it and drop the reference to the delegate. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |