DevicePairingResult Class

Represents the result of a device pairing operation.

Syntax

public sealed class DevicePairingResult
            

Members

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.

Remarks

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.

DevicePairingResultStatus Enumeration

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.

Requirements

Requirement Value
SDK Windows SDK
Namespace Windows.Devices.Enumeration
Metadata file Windows.winmd