LoggingFieldFormat Énumération

Définition

Spécifie le format d’un champ d’événement.

public enum class LoggingFieldFormat
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class LoggingFieldFormat
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum LoggingFieldFormat
var value = Windows.Foundation.Diagnostics.LoggingFieldFormat.default
Public Enum LoggingFieldFormat
Héritage
LoggingFieldFormat
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)

Champs

Boolean 3

Champ booléen.

Default 0

Aucun format n’est spécifié.

FileTime 16

Valeur FILETIME 64 bits.

Hexadecimal 4

Champ hexadécimal.

Hidden 1

Le champ est masqué.

HResult 15

Valeur HRESULT Windows 32 bits.

Ipv4Address 8

Champ IPv4 (Internet Protocol version 4).

Ipv6Address 9

Champ IPv6 (Internet Protocol version 6).

Json 12

Champ Json (JavaScript Object Notation).

NTStatus 14

Valeur Windows NTSTATUS 32 bits.

Port 7

Champ numéro de port.

ProcessId 5

Champ identificateur de processus.

Signed 17

Valeur signée.

SocketAddress 10

Champ d’adresse de socket.

String 2

Le champ contient une chaîne MBCS (caractère 8 bits).

ThreadId 6

Champ identificateur de thread.

Unsigned 18

Valeur non signée.

Win32Error 13

Code d’erreur Win32 32 bits.

Xml 11

Champ XML (Extensible Markup Language).

Remarques

Lorsqu’une charge utile de suivi d’événements pour Windows (ETW) est décodée par un outil de traitement d’événements tel que xperf ou Windows Analyseur de performances (WPA), l’outil peut utiliser des indicateurs de mise en forme pour interpréter le champ. Les indicateurs de mise en forme sont des paramètres facultatifs pour LoggingFields.Add.

Par exemple, un champ int32 peut spécifier le format **Hexadécimal ** pour indiquer qu’il doit être affiché en hexadécimal non signé. Un champ de tableau d’octets peut spécifier le format Signé pour indiquer qu’il doit être traité comme une série d’entiers décimaux signés, ou il peut spécifier le format String pour indiquer qu’il doit être traité comme une chaîne MBCS (caractère 8 bits).

S’applique à