Is device Authenticated ?

Topics: Bluetooth - Microsoft, Bluetooth - Other
Apr 27, 2013 at 3:49 PM
Edited Apr 27, 2013 at 3:49 PM
Hello. I see the property Authenticated of BluetoothDeviceInfo class. Problem is some devices are necessary authenticated to pass file via obex protocol, some - not. But if I check Authenticated property - it always false when device is not paired.
                        if (!item.Device.Authenticated)

                            // Use pin "0000" for authentication
                            if (!BluetoothSecurity.PairRequest(item.Device.DeviceAddress, "0000"))

so, if I remove this block of code - file will be passed to some devices without pairing, but with this code it always ask pin to pair. How can I check, whether device need to be paired or not?