本文介绍了如何使用C#.NET打开/关闭笔记本电脑的蓝牙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

I want to turn on or off my laptop blutooth using C#.NET.

推荐答案

基于此MSDN文章答案可能是BluetoothSetServiceState,但是在您的帖子中,我也无法在BluetoothRadio上找到任何内容,因此您可能需要确保它是支持,不会引起任何问题.

Based on this MSDN article the answer may be BluetoothSetServiceState but I also can't find anything on BluetoothRadio within your code snippet in your post so you may want to make sure that it is supported and isn't causing any problems.

这篇关于如何使用C#.NET打开/关闭笔记本电脑的蓝牙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-26 07:56