DeviceInformationPairing.TryRegisterForAllInboundPairingRequestsWithProtectionLevel Метод

Определение

Регистрирует приложение для обработки всех входящих запросов связывания с указанным минимальным уровнем защиты.

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

Параметры

pairingKindsSupported
DevicePairingKinds

Типы связывания, поддерживаемые приложением.

minProtectionLevel
DevicePairingProtectionLevel

Требуемый минимальный уровень защиты для принятия запросов на связывание.

Возвращаемое значение

Boolean

bool

Была ли попытка успешной.

Требования к Windows

Семейство устройств
Windows 10, version 1809 (появилось в 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (появилось в v7.0)

Комментарии

Этот API работает только с приложениями Windows 10 IoT Базовая (IoT Core).

Применяется к