共用方式為


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) 應用程式。

適用於