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) 应用程序。

适用于