CustomSensor.GetDeviceSelector(Guid) 方法

定义

从给定接口标识符获取设备选择器。

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

参数

interfaceId
Guid

Platform::Guid

winrt::guid

与自定义传感器关联的接口 Guid 。 此 Guid 由传感器定义和注册。

返回

String

Platform::String

winrt::hstring

返回设备选择器(如果存在);否则为 null。

适用于