WindowsDeviceInformationPairingMBS class New in 23.4
|class||Bluetooth||MBS WinFrameworks Plugin||23.4||❌ No||✅ Yes||❌ No||❌ No||Desktop, Console & Web|
- 2 events
- 4 properties
- 6 methods
- 2 shared methods
- shared method TryRegisterForAllInboundPairingRequests(pairingKindsSupported as Integer) as Boolean
- shared method TryRegisterForAllInboundPairingRequestsWithProtectionLevel(pairingKindsSupported as Integer, minProtectionLevel as Integer) as Boolean
- 39 constants
The application must confirm they wish to perform the pairing action.
You can present an optional confirmation dialog to the user. With a value of ConfirmOnly, call Accept from the event args of the PairingRequested event handler if you want the pairing to complete.
The application must display the given PIN to the user and ask the user to confirm that the PIN matches the one show on the target device.
With a value of ConfirmPinMatch, call Accept from the event args of the PairingRequested event handler if you want the pairing to complete.
The application must display the given PIN to the user.
The user will then need to enter or confirm that PIN on the device that is being paired. With a value of DisplayPin, call Accept from the event args of the PairingRequested event handler if you want the pairing to complete. If your application cancels the pairing at this point, the device might still be paired. This is because the system and the target device don't need any confirmation for this DevicePairingKinds value.
No pairing is supported.
The application must request a user name and password from the user.
With a value of ProvidePasswordCredential, call AcceptWithPasswordCredential from the event args of the PairingRequested event handler to accept the pairing. Pass in the PasswordCredential that encapsulates the user name and password as a parameter.
The application must request a PIN from the user.
The PIN will typically be displayed on the target device. With a value of ProvidePin, call Accept from the event args of the PairingRequested event handler if you want the pairing to complete. Pass in the PIN as a parameter.
The default value. This should not be used.
Pair the device using encryption.
Pair the device using encryption and authentication.
Pair the device using no levels of protection.
Require the link to be authenticated.
Require the link to be encrypted and authenticated.
Require the link to be encrypted.
Uses the default protection level.
Your application does not have the appropriate permissions level to pair the device object.
The device object has already been paired.
Authentication failed, so the device is not paired. Either the device object or the application rejected the authentication.
The authentication protocol is not supported, so the device is not paired.
The authentication process timed out before it could complete.
The device object rejected the connection.
An unknown failure occurred.
The device object indicated there was a hardware failure.
The ceremony data was incorrect.
There are no network profiles for this device object to use.
The device object is not currently paired.
The device object is not in a state where it can be paired.
The device object is already attempting to pair or unpair.
The device object is now paired.
The pairing action was canceled before completion.
The minimum level of protection is not supported by the device object or the application.
The application handler rejected the pairing.
The remove device already has an association.
Either the event handler wasn't registered or a required DevicePairingKinds was not supported.
The device object indicated it cannot accept any more incoming connections.
The caller does not have sufficient permissions to unpair the device.
The device object was already unpaired.
An unknown failure occurred.
The device object is currently in the middle of either a pairing or unpairing action.
The device object is successfully unpaired.
This class has no sub classes.
Some properties using for this class:
- WindowsBluetoothLEDeviceMBS.Pairing as WindowsDeviceInformationPairingMBS
The items on this page are in the following plugins: MBS WinFrameworks Plugin.