DeviceConnectionChangeTrigger Classe
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.
Représente un déclencheur qui lance une tâche en arrière-plan lorsque la status de connexion d’un appareil change.
public ref class DeviceConnectionChangeTrigger sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DeviceConnectionChangeTrigger final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DeviceConnectionChangeTrigger
Public NotInheritable Class DeviceConnectionChangeTrigger
- Héritage
- 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
| CanMaintainConnection |
Obtient si le système peut maintenir une connexion à l’appareil spécifié. |
| DeviceId |
Obtient l’ID d’appareil associé à l’appareil. |
| MaintainConnection |
Obtient ou définit si le système doit automatiquement tenter de maintenir l’appareil référencé connecté. |
Méthodes
| FromIdAsync(String) |
Commence une opération asynchrone pour obtenir le DeviceConnectionChangeTrigger associé à l’ID spécifié. |