LightSensor.FromIdAsync(String) 메서드

정의

식별자에서 센서를 비동기적으로 가져옵니다.

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)

매개 변수

deviceId
String

Platform::String

winrt::hstring

센서 식별자

반환

식별자에서 LightSensor 개체를 반환합니다.

특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Fall Creators Update (10.0.16299.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v5.0에서 도입되었습니다.)

적용 대상