Share via


RfcommDeviceService.GetDeviceSelector(RfcommServiceId) Method

Definition

Gets an Advanced Query Syntax (AQS) string for identifying instances of an RFCOMM service. This string is passed to the CreateWatcher method.

public:
 static Platform::String ^ GetDeviceSelector(RfcommServiceId ^ serviceId);
 static winrt::hstring GetDeviceSelector(RfcommServiceId const& serviceId);
public static string GetDeviceSelector(RfcommServiceId serviceId);
function getDeviceSelector(serviceId)
Public Shared Function GetDeviceSelector (serviceId As RfcommServiceId) As String

Parameters

serviceId
RfcommServiceId

The service id for which to query.

Returns

String

Platform::String

winrt::hstring

An AQS string for identifying RFCOMM service instances.

Windows requirements

App capabilities
bluetooth

Applies to