MagnetometerReading.MagneticFieldZ | magneticFieldZ property

Applies to Windows Phone only

Gets the magnetic field strength in microteslas along the Z axis.

Syntax


var magneticFieldZ = magnetometerReading.magneticFieldZ;

Property value

Type: Number [JavaScript] | System.Single [.NET] | float32 [C++]

The magnetic field strength in microteslas along the Z axis.

Remarks

The accuracy of this value depends on the state of magnetometer calibration reflected in the DirectionalAccuracy property.

Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Sensors
Windows::Devices::Sensors [C++]

Metadata

Windows.winmd

See also

MagnetometerReading

 

 

Show:
© 2014 Microsoft