DeviceInformationPairing.TryRegisterForAllInboundPairingRequestsWithProtectionLevel 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
註冊應用程式,以使用指定的最低保護層級來處理所有輸入配對要求。
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) 應用程式。