RfcommDeviceService.GetDeviceSelectorForBluetoothDevice 方法

定义

重载

GetDeviceSelectorForBluetoothDevice(BluetoothDevice, BluetoothCacheMode)

获取高级查询语法 (AQS) 字符串,用于标识远程蓝牙设备上所有 Rfcomm 服务的缓存实例。

GetDeviceSelectorForBluetoothDevice(BluetoothDevice)

获取高级查询语法 (AQS) 字符串,用于标识远程蓝牙设备上所有 Rfcomm 服务的实例。

GetDeviceSelectorForBluetoothDevice(BluetoothDevice, BluetoothCacheMode)

获取高级查询语法 (AQS) 字符串,用于标识远程蓝牙设备上所有 Rfcomm 服务的缓存实例。

public:
 static Platform::String ^ GetDeviceSelectorForBluetoothDevice(BluetoothDevice ^ bluetoothDevice, BluetoothCacheMode cacheMode);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceWithCacheMode")]
 static winrt::hstring GetDeviceSelectorForBluetoothDevice(BluetoothDevice const& bluetoothDevice, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceWithCacheMode")]
public static string GetDeviceSelectorForBluetoothDevice(BluetoothDevice bluetoothDevice, BluetoothCacheMode cacheMode);
function getDeviceSelectorForBluetoothDevice(bluetoothDevice, cacheMode)
Public Shared Function GetDeviceSelectorForBluetoothDevice (bluetoothDevice As BluetoothDevice, cacheMode As BluetoothCacheMode) As String

参数

bluetoothDevice
BluetoothDevice

远程蓝牙设备。

cacheMode
BluetoothCacheMode

缓存模式。

返回

String

Platform::String

winrt::hstring

用于标识远程蓝牙设备上所有 Rfcomm 服务的缓存实例的 AQS 字符串。

属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
应用功能
bluetooth

另请参阅

适用于

GetDeviceSelectorForBluetoothDevice(BluetoothDevice)

获取高级查询语法 (AQS) 字符串,用于标识远程蓝牙设备上所有 Rfcomm 服务的实例。

public:
 static Platform::String ^ GetDeviceSelectorForBluetoothDevice(BluetoothDevice ^ bluetoothDevice);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDevice")]
 static winrt::hstring GetDeviceSelectorForBluetoothDevice(BluetoothDevice const& bluetoothDevice);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDevice")]
public static string GetDeviceSelectorForBluetoothDevice(BluetoothDevice bluetoothDevice);
function getDeviceSelectorForBluetoothDevice(bluetoothDevice)
Public Shared Function GetDeviceSelectorForBluetoothDevice (bluetoothDevice As BluetoothDevice) As String

参数

bluetoothDevice
BluetoothDevice

远程蓝牙设备。

返回

String

Platform::String

winrt::hstring

用于标识远程蓝牙设备上所有 Rfcomm 服务的实例的 AQS 字符串。

属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
应用功能
bluetooth

另请参阅

适用于