RfcommDeviceService.GetDeviceSelectorForBluetoothDeviceAndServiceId Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId) |
Gets an Advanced Query Syntax (AQS) string for identifying instances of Rfcomm services on a remote Bluetooth device. |
GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode) |
Gets an Advanced Query Syntax (AQS) string for identifying instances of Rfcomm services on a remote Bluetooth device. |
GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId)
Gets an Advanced Query Syntax (AQS) string for identifying instances of Rfcomm services on a remote Bluetooth device.
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
Parameters
- bluetoothDevice
- BluetoothDevice
The remote Bluetooth device.
- serviceId
- RfcommServiceId
The service ID.
Returns
The AQS string for identifying instances of Rfcomm services.
- Attributes
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
App capabilities |
bluetooth
|
See also
Applies to
GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode)
Gets an Advanced Query Syntax (AQS) string for identifying instances of Rfcomm services on a remote Bluetooth device.
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
Parameters
- bluetoothDevice
- BluetoothDevice
The remote bluetooth device.
- serviceId
- RfcommServiceId
The service ID.
- cacheMode
- BluetoothCacheMode
The cache mode.
Returns
The AQS string for identifying instances of Rfcomm services.
- Attributes
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
App capabilities |
bluetooth
|