如何使用C#.NET打开/关闭我的笔记本电脑蓝牙

时间:2015-04-04 10:58:46

标签: c# bluetooth

if (!BluetoothRadio.IsSupported)
{
   tbOutput.Text = "No Bluetooth Adapter found!!!";
} else
{
  if (BluetoothRadio.PrimaryRadio.Mode == RadioMode.PowerOff)
      BluetoothRadio.PrimaryRadio.Mode = RadioMode.Discoverable;
}

我想使用C#.NET打开或关闭笔记本电脑蓝牙。

1 个答案:

答案 0 :(得分:0)

基于this MSDN article,答案可能是BluetoothSetServiceState,但我也无法在您的帖子的代码段中找到BluetoothRadio上的任何内容,因此您可能需要确保它受支持并且不会导致任何问题。