DeviceInformationPairing.TryRegisterForAllInboundPairingRequestsWithProtectionLevel Method

Definition

Registers the application to handle all inbound pairing requests with the specified minimum level of protection.

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

Parameters

pairingKindsSupported
DevicePairingKinds

The pairing kinds your app supports.

minProtectionLevel
DevicePairingProtectionLevel

The required minimum level of protection to accept for the pairing requests.

Returns

Boolean

bool

Whether or not the attempt was successful.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

This API only works with Windows 10 IoT Core (IoT Core) applications.

Applies to