MagnetometerReading Classe
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Représente une lecture de magnétomètre.
public ref class MagnetometerReading sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MagnetometerReading final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MagnetometerReading
Public NotInheritable Class MagnetometerReading
- Héritage
- Attributs
Famille d’appareils |
Windows 10 (introduit dans 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduit dans v1.0)
|
Cet objet est accessible lorsque vous appelez la méthode GetCurrentReading ; et, elle est accessible lorsque vous récupérez la propriété Reading de l’objet MagnetometerReadingChangedEventArgs dans la méthode de rappel d’événement.
Version de Windows | Version du SDK | Valeur ajoutée |
---|---|---|
1709 | 16299 | PerformanceCount |
1709 | 16299 | Propriétés |
Directional |
Obtient la précision directionnelle du magnétomètre. |
Magnetic |
Obtient la force du champ magnétique en microteslas le long de l’axe X. |
Magnetic |
Obtient la force du champ magnétique en microteslas le long de l’axe Y. |
Magnetic |
Obtient la force du champ magnétique en microteslas le long de l’axe Z. |
Performance |
Obtient le nombre de performances associé à la lecture. Cela permet de synchroniser la lecture avec d’autres appareils et processus sur le système. |
Properties |
Obtient les propriétés de données signalées par le capteur. |
Timestamp |
Obtient l’heure à laquelle le capteur a signalé la lecture. |
Produit | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |