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 Core (IoT Core) アプリケーションでのみ機能します。

適用対象