Поделиться через


Accelerometer.GetDeviceSelector(AccelerometerReadingType) Метод

Определение

Возвращает селектор устройства.

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

Параметры

readingType
AccelerometerReadingType

Тип извлекаемого датчика.

Возвращаемое значение

String

Platform::String

winrt::hstring

Возвращает селектор устройства, если он существует; в противном случае — null.

Требования к Windows

Семейство устройств
Windows 10 Fall Creators Update (появилось в 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (появилось в v5.0)

Применяется к