Partager via


DeviceInformationPairing.TryRegisterForAllInboundPairingRequestsWithProtectionLevel Méthode

Définition

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

Boolean

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).

S’applique à