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
| 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.
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.
The kind of pairing used for this 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.
- 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.
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.