CustomSensor.FromIdAsync(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从其标识符异步获取传感器。
public:
static IAsyncOperation<CustomSensor ^> ^ FromIdAsync(Platform::String ^ sensorId);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<CustomSensor> FromIdAsync(winrt::hstring const& sensorId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<CustomSensor> FromIdAsync(string sensorId);
function fromIdAsync(sensorId)
Public Shared Function FromIdAsync (sensorId As String) As IAsyncOperation(Of CustomSensor)
参数
- sensorId
-
String
Platform::String
winrt::hstring
传感器标识符。
返回
从其标识符返回 CustomSensor 对象。
- 属性