DeviceInformationPairing DeviceInformationPairing DeviceInformationPairing DeviceInformationPairing DeviceInformationPairing Class

Definition

Contains information and enables pairing for a device.

public : sealed class DeviceInformationPairing
struct winrt::Windows::Devices::Enumeration::DeviceInformationPairing
public sealed class DeviceInformationPairing
Public NotInheritable Class DeviceInformationPairing
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Version history

Windows version SDK version Value added
1511 10586 Custom
1511 10586 PairAsync(DevicePairingProtectionLevel,IDevicePairingSettings)
1511 10586 ProtectionLevel
1511 10586 TryRegisterForAllInboundPairingRequests
1511 10586 UnpairAsync
1809 17763 TryRegisterForAllInboundPairingRequestsWithProtectionLevel

Properties

CanPair CanPair CanPair CanPair CanPair

Gets a value that indicates whether the device can be paired.

Custom Custom Custom Custom Custom

Gets the DeviceInformationCustomPairing object necessary for custom pairing.

IsPaired IsPaired IsPaired IsPaired IsPaired

Gets a value that indicates whether the device is currently paired.

ProtectionLevel ProtectionLevel ProtectionLevel ProtectionLevel ProtectionLevel

Gets the level of protection used to pair the device.

Methods

PairAsync() PairAsync() PairAsync() PairAsync() PairAsync()

Attempts to pair the device.

PairAsync(DevicePairingProtectionLevel) PairAsync(DevicePairingProtectionLevel) PairAsync(DevicePairingProtectionLevel) PairAsync(DevicePairingProtectionLevel) PairAsync(DevicePairingProtectionLevel)

Attempts to pair the device using a provided level of protection.

PairAsync(DevicePairingProtectionLevel, IDevicePairingSettings) PairAsync(DevicePairingProtectionLevel, IDevicePairingSettings) PairAsync(DevicePairingProtectionLevel, IDevicePairingSettings) PairAsync(DevicePairingProtectionLevel, IDevicePairingSettings) PairAsync(DevicePairingProtectionLevel, IDevicePairingSettings)

Attempts to pair a device object with a specified protection level and custom settings.

TryRegisterForAllInboundPairingRequests(DevicePairingKinds) TryRegisterForAllInboundPairingRequests(DevicePairingKinds) TryRegisterForAllInboundPairingRequests(DevicePairingKinds) TryRegisterForAllInboundPairingRequests(DevicePairingKinds) TryRegisterForAllInboundPairingRequests(DevicePairingKinds)

Registers the application to handle all inbound pairing requests.

TryRegisterForAllInboundPairingRequestsWithProtectionLevel(DevicePairingKinds, DevicePairingProtectionLevel) TryRegisterForAllInboundPairingRequestsWithProtectionLevel(DevicePairingKinds, DevicePairingProtectionLevel) TryRegisterForAllInboundPairingRequestsWithProtectionLevel(DevicePairingKinds, DevicePairingProtectionLevel) TryRegisterForAllInboundPairingRequestsWithProtectionLevel(DevicePairingKinds, DevicePairingProtectionLevel) TryRegisterForAllInboundPairingRequestsWithProtectionLevel(DevicePairingKinds, DevicePairingProtectionLevel)

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

UnpairAsync() UnpairAsync() UnpairAsync() UnpairAsync() UnpairAsync()

Attempts to unpair the device.