Represents the result of a device pairing operation.
public sealed class DevicePairingResult
| Member | Description |
|---|---|
|
DevicePairingResultStatus
Status
get;
|
Gets the status of the device pairing operation. |
|
String
PairingTransportError
get;
|
Gets the transport error code if an error occurred during the pairing process. |
The DevicePairingResult class provides information about the outcome of a device pairing attempt. This includes whether the pairing was successful and, if not, the reason for failure.
The Status property is the primary way to determine the success or failure of the pairing. The possible values for DevicePairingResultStatus are defined in the DevicePairingResultStatus enumeration.
If the pairing fails due to a transport-level error, the PairingTransportError property may contain additional details.
Defines the possible outcomes of a device pairing operation.
| Member | Description |
|---|---|
Paired |
The device was successfully paired. |
Already Paired |
The device is already paired. |
Not Supported |
The pairing operation is not supported for this device. |
Connection Error |
A connection error occurred during pairing. |
Protocol Error |
A protocol error occurred during pairing. |
Access Denied |
Access to the device was denied. |
Authentication Failure |
Authentication failed during pairing. |
Failure |
An unspecified failure occurred during pairing. |
| Requirement | Value |
|---|---|
| SDK | Windows SDK |
| Namespace | Windows.Devices.Enumeration |
| Metadata file | Windows.winmd |