Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsDeviceInformationCustomPairingMBS class.

Pairing Kinds

WindowsDeviceInformationCustomPairingMBS.DevicePairingKindsConfirmOnly = 1

Type Topic Plugin Version
const Bluetooth MBS WinFrameworks Plugin 23.4
One of the kinds of pairing supported by your application or requested by the system.

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.

WindowsDeviceInformationCustomPairingMBS.DevicePairingKindsConfirmPinMatch = 8

Type Topic Plugin Version
const Bluetooth MBS WinFrameworks Plugin 23.4
One of the kinds of pairing supported by your application or requested by the system.

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.

WindowsDeviceInformationCustomPairingMBS.DevicePairingKindsDisplayPin = 2

Type Topic Plugin Version
const Bluetooth MBS WinFrameworks Plugin 23.4
One of the kinds of pairing supported by your application or requested by the system.

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.

WindowsDeviceInformationCustomPairingMBS.DevicePairingKindsNone = 0

Type Topic Plugin Version
const Bluetooth MBS WinFrameworks Plugin 23.4
One of the kinds of pairing supported by your application or requested by the system.

No pairing is supported.

WindowsDeviceInformationCustomPairingMBS.DevicePairingKindsProvidePasswordCredential = 16

Type Topic Plugin Version
const Bluetooth MBS WinFrameworks Plugin 23.4
One of the kinds of pairing supported by your application or requested by the system.

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.

WindowsDeviceInformationCustomPairingMBS.DevicePairingKindsProvidePin = 4

Type Topic Plugin Version
const Bluetooth MBS WinFrameworks Plugin 23.4
One of the kinds of pairing supported by your application or requested by the system.

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 items on this page are in the following plugins: MBS WinFrameworks Plugin.


The biggest plugin in space...