Export (0) Print
Expand All

EventLogEntry.EventID Property

NOTE: This property is now obsolete.

Gets the application-specific event identifier for the current event entry.

Namespace: System.Diagnostics
Assembly: System (in system.dll)

[ObsoleteAttribute("This property has been deprecated.  Please use System.Diagnostics.EventLogEntry.InstanceId instead.  http://go.microsoft.com/fwlink/?linkid=14202")] 
public int EventID { get; }
/** @property */
public int get_EventID ()

public function get EventID () : int

Property Value

The application-specific identifier for the event message.

This value represents the event identifier for the entry in the event log, with the top two bits masked off. The InstanceId property for an event log entry represents the full 32-bit resource identifier for the event in the message resource file for the event source. Two event log entries from the same source can have matching EventID values, but have different InstanceId values due to differences in the top two bits of the event identifier.

If the application wrote the event entry using one of the WriteEntry methods, the EventID property matches the optional eventId parameter. If the application wrote the event using WriteEvent or the Win32 API ReportEvent, the EventID property matches the resource identifier for the event, with the top two bits masked off.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 1.0, 1.1
Obsolete (compiler warning) in 2.0

Community Additions

ADD
Show:
© 2014 Microsoft