Share via


DeviceInformationCustomPairing Class

Definition

Represents a custom pairing for a DeviceInformation object.

public ref class DeviceInformationCustomPairing sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DeviceInformationCustomPairing final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DeviceInformationCustomPairing
Public NotInheritable Class DeviceInformationCustomPairing
Inheritance
Object Platform::Object IInspectable DeviceInformationCustomPairing
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Methods

AddPairingSetMember(DeviceInformation)

Add a member of a pairing set (for Bluetooth LE and IPP style printers). For more info, and code examples, see Pairing a set with the DeviceInformationPairing.Custom property.

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel, IDevicePairingSettings)

Attempts to pair a device using a minimum protection level and custom settings.

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel)

Attempts to pair a device using a minimum protection level.

PairAsync(DevicePairingKinds)

Attempts to pair the device.

Events

PairingRequested

Raised when a pairing action is requested.

PairingSetMembersRequested

Raised when the member(s) of a pairing set have been requested. For more info, and code examples, see Pairing a set with the DeviceInformationPairing.Custom property.

Applies to