Compartilhar via


DevicePairingRequestedEventArgs Class

Definition

Provides data for the PairingRequested event.

public ref class DevicePairingRequestedEventArgs 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 DevicePairingRequestedEventArgs 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 DevicePairingRequestedEventArgs
Public NotInheritable Class DevicePairingRequestedEventArgs
Inheritance
Object Platform::Object IInspectable DevicePairingRequestedEventArgs
Attributes

Windows requirements

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

Remarks

Version history

Windows version SDK version Value added
1903 18362 AcceptWithPasswordCredential

Properties

DeviceInformation

Gets the DeviceInformation object associated with this pairing request.

PairingKind

Gets the kind of pairing associated with this pairing event.

Pin

Gets the pin associated with a pairing request.

Methods

Accept()

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

Accept(String)

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

AcceptWithAddress(String)

Accepts a PairingRequested event with an address, and pairs the device with the application.

AcceptWithPasswordCredential(PasswordCredential)

Accepts a PairingRequested event and pairs the device with the application. Requires a user name and password for pairing purposes.

GetDeferral()

Requests a Deferral to support asynchronous operations.

Applies to