Compass.GetDeviceSelector Compass.GetDeviceSelector Compass.GetDeviceSelector Compass.GetDeviceSelector Compass.GetDeviceSelector Method

Definition

Gets the device selector.

public : static Platform::String GetDeviceSelector()
static winrt::hstring GetDeviceSelector() const;
public static string GetDeviceSelector()
Public Shared Function GetDeviceSelector() As string
var string = Windows.Devices.Sensors.Compass.getDeviceSelector();

Returns

string string string

Returns the device selector, if it exists; otherwise, null.

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)