DeviceInformationPairing.TryRegisterForAllInboundPairingRequestsWithProtectionLevel Méthode
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.
Inscrit l’application pour gérer toutes les demandes d’appairage entrant avec le niveau minimal de protection spécifié.
public:
static bool TryRegisterForAllInboundPairingRequestsWithProtectionLevel(DevicePairingKinds pairingKindsSupported, DevicePairingProtectionLevel minProtectionLevel);
static bool TryRegisterForAllInboundPairingRequestsWithProtectionLevel(DevicePairingKinds const& pairingKindsSupported, DevicePairingProtectionLevel const& minProtectionLevel);
public static bool TryRegisterForAllInboundPairingRequestsWithProtectionLevel(DevicePairingKinds pairingKindsSupported, DevicePairingProtectionLevel minProtectionLevel);
function tryRegisterForAllInboundPairingRequestsWithProtectionLevel(pairingKindsSupported, minProtectionLevel)
Public Shared Function TryRegisterForAllInboundPairingRequestsWithProtectionLevel (pairingKindsSupported As DevicePairingKinds, minProtectionLevel As DevicePairingProtectionLevel) As Boolean
Paramètres
- pairingKindsSupported
- DevicePairingKinds
Types d’appairage pris en charge par votre application.
- minProtectionLevel
- DevicePairingProtectionLevel
Niveau de protection minimal requis à accepter pour les demandes de jumelage.
Retours
bool
Indique si la tentative a réussi ou non.
Configuration requise pour Windows
Famille d’appareils |
Windows 10, version 1809 (introduit dans 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduit dans v7.0)
|
Remarques
Cette API fonctionne uniquement avec les applications Windows 10 IoT Standard (IoT Core).