Condividi tramite


EventLogEntry.EventID Proprietà

Definizione

Attenzione

EventLogEntry.EventID has been deprecated. Use System.Diagnostics.EventLogEntry.InstanceId instead.

Attenzione

This property has been deprecated. Please use System.Diagnostics.EventLogEntry.InstanceId instead. http://go.microsoft.com/fwlink/?linkid=14202

Attenzione

This property has been deprecated. Please use System.Diagnostics.EventLogEntry.InstanceId instead. https://go.microsoft.com/fwlink/?linkid=14202

Ottiene l'identificatore dell'evento specifico dell'applicazione per la voce dell'evento corrente.

public:
 property int EventID { int get(); };
[System.Obsolete("EventLogEntry.EventID has been deprecated. Use System.Diagnostics.EventLogEntry.InstanceId instead.")]
public int EventID { get; }
public int EventID { get; }
[System.Obsolete("This property has been deprecated.  Please use System.Diagnostics.EventLogEntry.InstanceId instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
public int EventID { get; }
[System.Obsolete("This property has been deprecated.  Please use System.Diagnostics.EventLogEntry.InstanceId instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
public int EventID { get; }
[<System.Obsolete("EventLogEntry.EventID has been deprecated. Use System.Diagnostics.EventLogEntry.InstanceId instead.")>]
member this.EventID : int
member this.EventID : int
[<System.Obsolete("This property has been deprecated.  Please use System.Diagnostics.EventLogEntry.InstanceId instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.EventID : int
[<System.Obsolete("This property has been deprecated.  Please use System.Diagnostics.EventLogEntry.InstanceId instead.  https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.EventID : int
Public ReadOnly Property EventID As Integer

Valore della proprietà

Identificatore specifico dell'applicazione per il messaggio di evento.

Attributi

Commenti

Questo valore rappresenta l'identificatore dell'evento per la voce nel registro eventi, con i primi due bit mascherati. La InstanceId proprietà per una voce del registro eventi rappresenta l'identificatore completo della risorsa a 32 bit per l'evento nel file di risorse del messaggio per l'origine evento. Due voci del registro eventi della stessa origine possono avere valori corrispondenti EventID , ma hanno valori diversi InstanceId a causa delle differenze nei primi due bit dell'identificatore dell'evento.

Se l'applicazione ha scritto la voce dell'evento usando uno dei WriteEntry metodi , la EventID proprietà corrisponde al parametro facoltativo eventId . Se l'applicazione ha scritto l'evento usando WriteEvent o l'API ReportEventWindows , la EventID proprietà corrisponde all'identificatore di risorsa per l'evento, con i primi due bit mascherati.

Si applica a

Vedi anche