DeviceInformationPairing DeviceInformationPairing DeviceInformationPairing DeviceInformationPairing DeviceInformationPairing Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Contains information and enables pairing for a device.

public : sealed class DeviceInformationPairing : IDeviceInformationPairing, IDeviceInformationPairing2
struct winrt::Windows::Devices::Enumeration::DeviceInformationPairing : IDeviceInformationPairing, IDeviceInformationPairing2
public sealed class DeviceInformationPairing : IDeviceInformationPairing, IDeviceInformationPairing2
Public NotInheritable Class DeviceInformationPairing Implements IDeviceInformationPairing, IDeviceInformationPairing2
// 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)

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.

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

Attempts to unpair the device.