EventLogEntry.EventID Właściwość

Definicja

Przestroga

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

Przestroga

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

Przestroga

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

Pobiera identyfikator zdarzenia specyficznego dla aplikacji dla bieżącego wpisu zdarzenia.

public:
 property int EventID { int 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.")]
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")>]
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
[<System.Obsolete("EventLogEntry.EventID has been deprecated. Use System.Diagnostics.EventLogEntry.InstanceId instead.")>]
member this.EventID : int
member this.EventID : int
Public ReadOnly Property EventID As Integer

Wartość właściwości

Identyfikator specyficzny dla aplikacji dla komunikatu zdarzenia.

Atrybuty

Uwagi

Ta wartość reprezentuje identyfikator zdarzenia wpisu w dzienniku zdarzeń z dwóch pierwszych bitów zamaskowanych. Właściwość InstanceId wpisu dziennika zdarzeń reprezentuje pełny 32-bitowy identyfikator zasobu zdarzenia w pliku zasobu komunikatu dla źródła zdarzeń. Dwa wpisy dziennika zdarzeń z tego samego źródła mogą mieć pasujące EventID wartości, ale mają różne InstanceId wartości ze względu na różnice w dwóch pierwszych bitach identyfikatora zdarzenia.

Jeśli aplikacja napisała wpis zdarzenia przy użyciu jednej z metod, EventID właściwość jest zgodna z WriteEntry opcjonalnym eventId parametrem. Jeśli aplikacja napisała zdarzenie przy użyciu WriteEvent interfejsu API systemu Windows lub interfejsu API ReportEventsystemu Windows, EventID właściwość jest zgodna z identyfikatorem zasobu zdarzenia, z dwoma górnymi bitami zamaskowane.

Dotyczy

Zobacz też