BluetoothLEDevice.GetConnectionParameters 方法

定义

检索远程设备的连接参数。 如果多个应用或其他系统方案也请求这些参数,则系统会根据系统优先级自动合并这些参数(在兼容的情况下)。

注意

当设备未连接时,连接参数 (所有零) 无效。

public:
 virtual BluetoothLEConnectionParameters ^ GetConnectionParameters() = GetConnectionParameters;
BluetoothLEConnectionParameters GetConnectionParameters();
public BluetoothLEConnectionParameters GetConnectionParameters();
function getConnectionParameters()
Public Function GetConnectionParameters () As BluetoothLEConnectionParameters

返回

一个 BluetoothLEConnectionParameters 对象,表示远程设备的连接参数。

Windows 要求

设备系列
Windows 11 (在 10.0.22000.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v14.0 中引入)
应用功能
bluetooth

适用于