Share via


ServiceDevice.GetDeviceSelector(ServiceDeviceType) Method

Definition

Returns an Advanced Query Syntax (AQS) string that is used to enumerate device services of the specified ServiceDeviceType. This string is passed to the FindAllAsync or CreateWatcher method.

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

Parameters

serviceType
ServiceDeviceType

The type of service to identify.

Returns

String

Platform::String

winrt::hstring

The AQS string.

Applies to

See also