如何使用C#.NET打开/关闭笔记本电脑的蓝牙 [英] How to turn on/off my laptop Bluetooth using C#.NET

查看:575
本文介绍了如何使用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.

推荐答案

基于

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打开/关闭笔记本电脑的蓝牙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆