Поделиться через


RfcommDeviceService.GetDeviceSelectorForBluetoothDeviceAndServiceId Метод

Определение

Перегрузки

GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId)

Возвращает строку расширенного синтаксиса запросов (AQS) для идентификации экземпляров служб Rfcomm на удаленном устройстве Bluetooth.

GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode)

Возвращает строку расширенного синтаксиса запросов (AQS) для идентификации экземпляров служб Rfcomm на удаленном устройстве Bluetooth.

GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId)

Возвращает строку расширенного синтаксиса запросов (AQS) для идентификации экземпляров служб Rfcomm на удаленном устройстве Bluetooth.

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

Параметры

bluetoothDevice
BluetoothDevice

Удаленное устройство Bluetooth.

serviceId
RfcommServiceId

Идентификатор службы.

Возвращаемое значение

String

Platform::String

winrt::hstring

Строка AQS для идентификации экземпляров служб Rfcomm.

Атрибуты

Требования к 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

См. также раздел

Применяется к

GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode)

Возвращает строку расширенного синтаксиса запросов (AQS) для идентификации экземпляров служб Rfcomm на удаленном устройстве Bluetooth.

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

Параметры

bluetoothDevice
BluetoothDevice

Удаленное устройство Bluetooth.

serviceId
RfcommServiceId

Идентификатор службы.

cacheMode
BluetoothCacheMode

Режим кэша.

Возвращаемое значение

String

Platform::String

winrt::hstring

Строка AQS для идентификации экземпляров служб Rfcomm.

Атрибуты

Требования к 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

См. также раздел

Применяется к