Share via


CustomSensor.FromIdAsync(String) Method

Definition

Asynchronously obtains the sensor from its identifier.

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)

Parameters

sensorId
String

Platform::String

winrt::hstring

The sensor identifier.

Returns

Returns the CustomSensor object from its identifier.

Attributes

Applies to