Inclinometer.GetDeviceSelector(SensorReadingType) メソッド

定義

デバイス セレクターを取得します。

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

パラメーター

readingType
SensorReadingType

取得するセンサーの種類。

戻り値

String

Platform::String

winrt::hstring

デバイス セレクターが存在する場合は、そのセレクターを返します。それ以外の場合は null。

Windows の要件

デバイス ファミリ
Windows 10 Fall Creators Update (10.0.16299.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v5.0 で導入)

適用対象

こちらもご覧ください