IBackgroundTaskInstance2 Interface
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Fournit l’accès à une tâche en arrière-plan instance. Hérite de l’interface IBackgroundTaskInstance et ajoute la méthode GetThrottleCount .
public interface class IBackgroundTaskInstance2 : IBackgroundTaskInstance
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1333592438, 3190, 20404, 137, 109, 93, 225, 134, 65, 34, 246)]
struct IBackgroundTaskInstance2 : IBackgroundTaskInstance
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1333592438, 3190, 20404, 137, 109, 93, 225, 134, 65, 34, 246)]
public interface IBackgroundTaskInstance2 : IBackgroundTaskInstance
Public Interface IBackgroundTaskInstance2
Implements IBackgroundTaskInstance
- Attributs
- Implémente
Configuration requise pour Windows
| Famille d’appareils |
Windows 10 (introduit dans 10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduit dans v1.0)
|
Propriétés
| InstanceId |
Obtient l’ID instance de la tâche en arrière-plan instance. (Hérité de IBackgroundTaskInstance) |
| Progress |
Obtient ou définit les status de progression d’une tâche en arrière-plan instance. (Hérité de IBackgroundTaskInstance) |
| SuspendedCount |
Obtient le nombre de fois où la stratégie de gestion des ressources a provoqué la suspension de la tâche en arrière-plan. (Hérité de IBackgroundTaskInstance) |
| Task |
Obtient l’accès à la tâche en arrière-plan inscrite pour cette tâche en arrière-plan instance. (Hérité de IBackgroundTaskInstance) |
| TriggerDetails |
Obtient des informations supplémentaires associées à une tâche en arrière-plan instance. (Hérité de IBackgroundTaskInstance) |
Méthodes
| GetDeferral() |
Informe le système que la tâche en arrière-plan peut continuer à effectuer le travail après le retour de la méthode IBackgroundTask.Run . (Hérité de IBackgroundTaskInstance) |
| GetThrottleCount(BackgroundTaskThrottleCounter) |
Récupère le nombre de fois où la tâche en arrière-plan a été suspendue en cas d’utilisation d’un trop grand nombre de ressources. |
Événements
| Canceled |
Attache un gestionnaire d’événements d’annulation à la tâche en arrière-plan instance. (Hérité de IBackgroundTaskInstance) |