ServiceDevice.GetDeviceSelectorFromServiceId(Guid) 方法

定义

高级查询语法 (AQS) 字符串,用于通过其 GUID 标识设备服务。 此字符串将传递给 FindAllAsyncCreateWatcher 方法。

public:
 static Platform::String ^ GetDeviceSelectorFromServiceId(Platform::Guid serviceId);
 static winrt::hstring GetDeviceSelectorFromServiceId(winrt::guid const& serviceId);
public static string GetDeviceSelectorFromServiceId(Guid serviceId);
function getDeviceSelectorFromServiceId(serviceId)
Public Shared Function GetDeviceSelectorFromServiceId (serviceId As Guid) As String

参数

serviceId
Guid

Platform::Guid

winrt::guid

服务标识符。

返回

String

Platform::String

winrt::hstring

AQS 字符串。

适用于

另请参阅