ServiceDevice.GetDeviceSelector(ServiceDeviceType) Méthode

Définition

Retourne une chaîne AQS (Advanced Query Syntax) utilisée pour énumérer les services d’appareil du ServiceDeviceType spécifié. Cette chaîne est passée à la méthode FindAllAsync ou CreateWatcher .

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

Paramètres

serviceType
ServiceDeviceType

Type de service à identifier.

Retours

String

Platform::String

winrt::hstring

Chaîne AQS.

S’applique à

Voir aussi