Deferral Classe

Définition

Stocke un DeferralCompletedHandler à appeler à la fin du report et manipule l’état du report.

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.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class Deferral final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [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.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class Deferral
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[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
Héritage
Object Platform::Object IInspectable Deferral
Attributs
Implémente

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduit dans v1.0)

Remarques

Pour plus d’informations sur la classe Deferral , consultez la section sur les reports dans le cycle de vie des applications et l’exemple ExtendedExecution.

Les applications Javascript ne doivent pas autoriser la navigation avant d’effectuer un ReportCompletedHandler. Cela peut entraîner un blocage d’une application et doit être considéré comme une erreur de programmation.

Constructeurs

Deferral(DeferralCompletedHandler)

Initialise un nouvel objet Deferral et spécifie un DeferralCompletedHandler à appeler à la fin du report.

Méthodes

Close()

Si le DeferralCompletedHandler n’a pas encore été appelé, cela l’appelle et supprime la référence au délégué.

Complete()

Si le DeferralCompletedHandler n’a pas encore été appelé, cela l’appelle et supprime la référence au délégué.

Dispose()

Exécute les tâches définies par l'application associées à la libération ou à la redéfinition des ressources non managées.

S’applique à

Voir aussi