Share via


LightSensor.FromIdAsync(String) Méthode

Définition

Obtient de façon asynchrone le capteur à partir de son identificateur.

public:
 static IAsyncOperation<LightSensor ^> ^ FromIdAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<LightSensor> FromIdAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LightSensor> FromIdAsync(string deviceId);
function fromIdAsync(deviceId)
Public Shared Function FromIdAsync (deviceId As String) As IAsyncOperation(Of LightSensor)

Paramètres

deviceId
String

Platform::String

winrt::hstring

Identificateur du capteur

Retours

Retourne l’objet LightSensor à partir de son identificateur.

Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 Fall Creators Update (introduit dans 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v5.0)

S’applique à