共用方式為


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 字串。

適用於

另請參閱