DevicePairingRequestedEventArgs DevicePairingRequestedEventArgs DevicePairingRequestedEventArgs DevicePairingRequestedEventArgs Class

Definition

Provides data for the PairingRequested event.

public : sealed class DevicePairingRequestedEventArgs : IDevicePairingRequestedEventArgspublic sealed class DevicePairingRequestedEventArgs : IDevicePairingRequestedEventArgsPublic NotInheritable Class DevicePairingRequestedEventArgs Implements IDevicePairingRequestedEventArgs// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Properties

DeviceInformation DeviceInformation DeviceInformation DeviceInformation

Gets the DeviceInformation object associated with this pairing request.

public : DeviceInformation DeviceInformation { get; }public DeviceInformation DeviceInformation { get; }Public ReadOnly Property DeviceInformation As DeviceInformation// You can use this property in JavaScript.
Value
DeviceInformation DeviceInformation DeviceInformation DeviceInformation

The DeviceInformation object associated with this pairing request.

PairingKind PairingKind PairingKind PairingKind

Gets the kind of pairing associated with this pairing event.

public : DevicePairingKinds PairingKind { get; }public DevicePairingKinds PairingKind { get; }Public ReadOnly Property PairingKind As DevicePairingKinds// You can use this property in JavaScript.
Value
DevicePairingKinds DevicePairingKinds DevicePairingKinds DevicePairingKinds

The kind of pairing used for this pairing request.

Pin Pin Pin Pin

Gets the pin associated with a pairing request.

public : PlatForm::String Pin { get; }public string Pin { get; }Public ReadOnly Property Pin As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The pin associated with a pairing request.

Methods

Accept() Accept() Accept() Accept()

Accepts a PairingRequested event and pairs the device with the application.

public : void Accept()public void Accept()Public Function Accept() As void// You can use this method in JavaScript.
See Also

Accept(String) Accept(String) Accept(String) Accept(String)

Accepts a PairingRequested event and pairs the device with the application. Requires a pin for pairing purposes.

public : void Accept(PlatForm::String pin)public void Accept(String pin)Public Function Accept(pin As String) As void// You can use this method in JavaScript.
Parameters
pin
PlatForm::String String String String

The pin to use for attempting to pair a device.

See Also

GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Requests a Deferral to support asynchronous operations.

public : Deferral GetDeferral()public Deferral GetDeferral()Public Function GetDeferral() As Deferral// You can use this method in JavaScript.
Returns

The deferral necessary to support asynchronous actions.

Remarks

Sometimes it is necessary to create a delay while the user interacts with the application to support a specific DevicePairingKinds value. For example, with ProvidePin, the application needs to wait until the user finishes providing a pin before continuing with the pairing process.