if (!BluetoothRadio.IsSupported)
{
tbOutput.Text = "No Bluetooth Adapter found!!!";
} else
{
if (BluetoothRadio.PrimaryRadio.Mode == RadioMode.PowerOff)
BluetoothRadio.PrimaryRadio.Mode = RadioMode.Discoverable;
}
我想使用C#.NET打开或关闭笔记本电脑蓝牙。
答案 0 :(得分:0)
基于this MSDN article,答案可能是BluetoothSetServiceState,但我也无法在您的帖子的代码段中找到BluetoothRadio上的任何内容,因此您可能需要确保它受支持并且不会导致任何问题。