# InTheHand.Bluetooth 库模块帮助文档

## InTheHand.Bluetooth 成员列表 <a id="InTheHand.Bluetooth" href="#InTheHand.Bluetooth">&#x23;</a>

.NET 命名空间 InTheHand.Bluetooth 。  
最低要求 .NET 4.6.2 ，Win10 1607 开始系统自带 。  
自 InTheHand.BluetoothLE 程序集加载，用于低耗电蓝牙。  
普通蓝牙请使用 InTheHand.Net 库

### InTheHand.Bluetooth.* <a id="InTheHand.Bluetooth.any" href="#InTheHand.Bluetooth.any">&#x23;</a>
.NET 命名空间、类、结构体的成员，  
可访问成员命名空间、类、枚举、静态属性或字段，  
导入的类可用于构造 .NET 对象，传回 .NET 则自动转为该类的 Type 对象  

[返回对象:dotNetNameSpaceObject](https://www.aardio.com/zh-cn/docs/library-reference/dotNet/appDomain.html#dotNetNameSpaceObject)

### InTheHand.Bluetooth.assembly <a id="InTheHand.Bluetooth.assembly" href="#InTheHand.Bluetooth.assembly">&#x23;</a>
导入此 .NET 命名空间的程序集对象。  

[返回对象:dotNetCrlAssemblyObject](https://www.aardio.com/zh-cn/docs/library-reference/dotNet/appDomain.html#dotNetCrlAssemblyObject)

### InTheHand.Bluetooth.eachDevice() <a id="InTheHand.Bluetooth.eachDevice" href="#InTheHand.Bluetooth.eachDevice">&#x23;</a>
[返回对象:InTheHandBluetoothBleDevObject](#InTheHandBluetoothBleDevObject)

### InTheHand.Bluetooth.eachDevice(winform,options,cancelToken) <a id="InTheHand.Bluetooth.eachDevice" href="#InTheHand.Bluetooth.eachDevice">&#x23;</a>

```aardio
for i,deviceInfo in InTheHand.Bluetooth.eachDevice(winform){
	/*winform 参数必须指定窗体对象，其他为可选参数。  
deviceInfo 为发现的蓝牙设备。*/
}
```

## InTheHandBluetoothBleDevObject 成员列表 <a id="InTheHandBluetoothBleDevObject" href="#InTheHandBluetoothBleDevObject">&#x23;</a>

### InTheHandBluetoothBleDevObject.Id <a id="InTheHandBluetoothBleDevObject.Id" href="#InTheHandBluetoothBleDevObject.Id">&#x23;</a>
设备 ID

### InTheHandBluetoothBleDevObject.IsPaired <a id="InTheHandBluetoothBleDevObject.IsPaired" href="#InTheHandBluetoothBleDevObject.IsPaired">&#x23;</a>
是否已配对

### InTheHandBluetoothBleDevObject.Name <a id="InTheHandBluetoothBleDevObject.Name" href="#InTheHandBluetoothBleDevObject.Name">&#x23;</a>
设备名

## InTheHandBluetoothBleDevObject.Gatt 成员列表 <a id="InTheHandBluetoothBleDevObject.Gatt" href="#InTheHandBluetoothBleDevObject.Gatt">&#x23;</a>

### InTheHandBluetoothBleDevObject.Gatt.ConnectAsync() <a id="InTheHandBluetoothBleDevObject.Gatt.ConnectAsync" href="#InTheHandBluetoothBleDevObject.Gatt.ConnectAsync">&#x23;</a>
连接，返回异步任务

### InTheHandBluetoothBleDevObject.Gatt.GetPrimaryServicesAsync() <a id="InTheHandBluetoothBleDevObject.Gatt.GetPrimaryServicesAsync" href="#InTheHandBluetoothBleDevObject.Gatt.GetPrimaryServicesAsync">&#x23;</a>
获取主要服务列表，返回异步任务
