Udostępnij za pośrednictwem


DevicePairingResultStatus Enum

Definition

The result of the pairing action with an Association Endpoint (AEP) device object. For more information about AEP objects, see DeviceInformationKind.

public enum class DevicePairingResultStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class DevicePairingResultStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum DevicePairingResultStatus
var value = Windows.Devices.Enumeration.DevicePairingResultStatus.paired
Public Enum DevicePairingResultStatus
Inheritance
DevicePairingResultStatus
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Paired 0

The device object is now paired.

NotReadyToPair 1

The device object is not in a state where it can be paired.

NotPaired 2

The device object is not currently paired.

AlreadyPaired 3

The device object has already been paired.

ConnectionRejected 4

The device object rejected the connection.

TooManyConnections 5

The device object indicated it cannot accept any more incoming connections.

HardwareFailure 6

The device object indicated there was a hardware failure.

AuthenticationTimeout 7

The authentication process timed out before it could complete.

AuthenticationNotAllowed 8

The authentication protocol is not supported, so the device is not paired.

AuthenticationFailure 9

Authentication failed, so the device is not paired. Either the device object or the application rejected the authentication.

NoSupportedProfiles 10

There are no network profiles for this device object to use.

ProtectionLevelCouldNotBeMet 11

The minimum level of protection is not supported by the device object or the application.

AccessDenied 12

Your application does not have the appropriate permissions level to pair the device object.

InvalidCeremonyData 13

The ceremony data was incorrect.

PairingCanceled 14

The pairing action was canceled before completion.

OperationAlreadyInProgress 15

The device object is already attempting to pair or unpair.

RequiredHandlerNotRegistered 16

Either the event handler wasn't registered or a required DevicePairingKinds was not supported.

RejectedByHandler 17

The application handler rejected the pairing.

RemoteDeviceHasAssociation 18

The remove device already has an association.

Failed 19

An unknown failure occurred.

Remarks

Version history

Windows version SDK version Value added
1511 10586 Failed
1511 10586 OperationAlreadyInProgress
1511 10586 PairingCanceled
1511 10586 RejectedByHandler
1511 10586 RemoteDeviceHasAssociation
1511 10586 RequiredHandlerNotRegistered

Applies to