In The Hand
PairRequest Method (device, pin)
NamespacesInTheHand.Net.BluetoothBluetoothSecurityPairRequest(BluetoothAddress, String)
.NET Components for Mobility
Intiates pairing for a remote device.
Declaration Syntax
C#Visual Basic
public static bool PairRequest(
	BluetoothAddress device,
	string pin
)
Public Shared Function PairRequest ( _
	device As BluetoothAddress, _
	pin As String _
) As Boolean
Parameters
device (BluetoothAddress)
Remote device with which to pair.
pin (String)
Chosen PIN code, must be between 1 and 16 ASCII characters.
Return Value
Whether the operation was successful.
Remarks

On Windows CE platforms this calls BthPairRequest, its MSDN remarks say:

“BthPairRequest passes the parameters to the BthSetPIN function and creates an ACL connection. Once the connection is established, it calls the BthAuthenticate function to authenticate the device.”

On Windows XP/Vista platforms this calls BluetoothAuthenticateDevice, if the pin argument is set to null a Wizard is displayed to accept a PIN from the user, otherwise the function executes in transparent mode.

See also SetPin(BluetoothAddress, String)

Assembly: InTheHand.Net.Personal (Module: InTheHand.Net.Personal) Version: 3.0.0.0