DeviceInformationPairing 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.
Contient des informations et active le jumelage pour un appareil.
public ref class DeviceInformationPairing 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 DeviceInformationPairing 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 DeviceInformationPairing
Public NotInheritable Class DeviceInformationPairing
- Héritage
- Attributs
Configuration requise pour Windows
Famille d’appareils |
Windows 10 (introduit dans 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduit dans v1.0)
|
Remarques
Historique des versions
Version de Windows | Version du SDK | Valeur ajoutée |
---|---|---|
1511 | 10586 | Custom |
1511 | 10586 | PairAsync(DevicePairingProtectionLevel,IDevicePairingSettings) |
1511 | 10586 | ProtectionLevel |
1511 | 10586 | TryRegisterForAllInboundPairingRequests |
1511 | 10586 | UnpairAsync |
1809 | 17763 | TryRegisterForAllInboundPairingRequestsWithProtectionLevel |
Propriétés
CanPair |
Obtient une valeur qui indique si l’appareil peut être jumelé. |
Custom |
Obtient l’objet DeviceInformationCustomPairing nécessaire pour le jumelage personnalisé. |
IsPaired |
Obtient une valeur qui indique si l’appareil est actuellement jumelé. |
ProtectionLevel |
Obtient le niveau de protection utilisé pour coupler l’appareil. |
Méthodes
PairAsync() |
Tente de coupler l’appareil. |
PairAsync(DevicePairingProtectionLevel) |
Tente de coupler l’appareil à l’aide d’un niveau de protection fourni. |
PairAsync(DevicePairingProtectionLevel, IDevicePairingSettings) |
Tente de coupler un objet d’appareil avec un niveau de protection et des paramètres personnalisés spécifiés. |
TryRegisterForAllInboundPairingRequests(DevicePairingKinds) |
Inscrit l’application pour gérer toutes les demandes de jumelage entrantes. |
TryRegisterForAllInboundPairingRequestsWithProtectionLevel(DevicePairingKinds, DevicePairingProtectionLevel) |
Inscrit l’application pour gérer toutes les demandes d’appairage entrant avec le niveau de protection minimal spécifié. |
UnpairAsync() |
Tente de dissocier l’appareil. |
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour