System [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.3300.0 1.0.5000.0 2.0.0.0 4.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.ComponentModel.Component System.Runtime.Serialization.ISerializable System.ComponentModel.DesignTimeVisible(false) System.ComponentModel.ToolboxItem(false)

You usually will not create instances of directly when working with the class. The member of the class contains a collection of instances, which you iterate over when reading by using the class index member.

Encapsulates a single record in the event log. This class cannot be inherited.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("The category of this event entry.")
  System.String To be added: an object of type 'string'

  Each application (event source) can define its own numbered categories and the text strings to which they are mapped. The Event Viewer can use the category to filter events in the log.

  Gets the text associated with the property for this entry.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("An ID for the category of this event entry.")
  System.Int16 To be added: an object of type 'short'

  Each application (event source) can define its own numbered categories and the text strings to which they are mapped. The Event Viewer can use the category to filter events in the log. The categories must be numbered consecutively beginning with the number 1. The category number is specified by the property. The Event Viewer can display the category as a numeric value, or it can use the category as a resource identifier to display a localized category string. For more information, see .

  Gets the category number of the event log entry.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("Binary data associated with this event entry.")
  System.Byte[] To be added: an object of type 'byte []'

  Getting this property creates an array that holds a copy of the entry's event-specific binary data, which the Event Viewer displays in combined hexadecimal and text format. Event-specific data is sometimes used to store information that the application will process independently of the Event Viewer, for example, to make reports from the log file.

  Gets the binary data associated with the entry.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("The type of this event entry.")
  System.Diagnostics.EventLogEntryType To be added: an object of type 'EventLogEntryType'

  All event types have well-defined common data and can optionally include event-specific data. Each event is of a single type, which the application indicates when it reports the event. The Event Viewer uses the event type to determine which icon to display in the list view of the event log.

  Gets the event type of this entry.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean ``

  This method performs a byte-by-byte comparison between the two objects. It does not determine whether the two instances refer to the same object.

  Performs a comparison between two event log entries.

  true if the objects are identical; otherwise, false.

  The to compare.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("An ID number for this event entry.")
  System.Obsolete("Use InstanceId")
  System.Int32 To be added: an object of type 'int'

  This value represents the event identifier for the entry in the event log, with the top two bits masked off. The 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 values, but have different values due to differences in the top two bits of the event identifier.

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

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

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("Sequence numer of this event entry.")
  System.Int32 To be added: an object of type 'int'

  This number is not necessarily zero-based.

  Gets the index of this entry in the event log.

- Property
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("The instance ID for this event entry.")
  System.Runtime.InteropServices.ComVisible(false)
  System.Int64 To be added.

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

  If the application wrote the event entry using one of the methods, the property matches the optional parameter. If the application wrote the event using , the property matches the resource identifier specified in the of the parameter. If the application wrote the event using the Win32 API ReportEvent, the property matches the resource identifier specified in the parameter.

  For details about defining event messages and building event log resource files, see the "Message Compiler" topic in the Platform SDK documentation at http://msdn.microsoft.com. For details about event log identifiers, see the "Event Identifiers" topic in the Platform SDK.

  Gets the resource identifier that designates the message text of the event entry.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("The Computer on which this event entry occured.")
  System.String To be added: an object of type 'string' To be added

  Gets the name of the computer on which this entry was generated.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.ComponentModel.Editor("System.ComponentModel.Design.BinaryEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
  System.Diagnostics.MonitoringDescription("The message of this event entry.")
  System.String To be added: an object of type 'string'

  Getting this property opens the registry to determine the file name of the .dll file that contains the localized text. If you receive a registry error when testing your source code, verify that the .dll file exists on the computer. If insertion strings are included in the message, catch errors in their allocation.

  Gets the localized message associated with this event entry.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("Application strings for this event entry.")
  System.String[] To be added: an object of type 'string []'

  This property retrieves only the replacement strings for the entry. To retrieve the full message, read the property.

  The property contains the localized versions of replacement strings that are used in the event log entry. If you provide resource files that contain strings in each target language for your application, you can emit event log messages in the language that is used on that computer. To do that, create an instance of the class for the resource assembly that contains your replacement strings. The first parameter of the constructor identifies the resource assembly to be used. Use the method of that instance to supply localized messages for log events. The following code automatically sets the message to the language for the current culture.

  `ResourceManager LocRM = new ResourceManager("ReplacementStrings.TestStrings", typeof(Program).Assembly); EventLog e1 = new EventLog("LocTest", "MyMachine", "LocTest"); // Get the string associated with the current culture. e1.WriteEntry(LocRM.GetString("strMessage"), EventLogEntryType.Information);`

  For information about how to create localized resource files, see Walkthrough: Localizing Windows Forms.

  Gets the replacement strings associated with the event log entry.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("The source application of this event entry.")
  System.String To be added: an object of type 'string'

  The event source indicates what logged the event. It is often the name of the application or the name of a subcomponent of the application if the application is large. Applications and services usually write to (and therefore are sources for) the Application log or a custom log. Device drivers usually write to the System log.

  Gets the name of the application that generated this event.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.MonoTODO("Needs serialization support")
  System.Void `` `` To be added.

  Populates a with the data needed to serialize the target object.

  The to populate with data. The destination (see ) for this serialization.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("Generation time of this event entry.")
  System.DateTime To be added: an object of type 'DateTime'

  This member holds the time that an event was generated. This might not be the same as the time when the event information was written to the event log. For the latter, read the property.

  There is usually a lag between the time that an event is generated and the time it is logged. It is more important to know when the event was generated, unless you want to see if there is a significant lag in logging. That can happen if your log files are on a different server and you are experiencing a bottleneck.

  Gets the local time at which this event was generated.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("The time at which this event entry was written to the logfile.")
  System.DateTime To be added: an object of type 'DateTime'

  This member holds the time that an event's information is written to the event log. This might not be the same time as when the event was generated. For the latter, read the property.

  Gets the local time at which this event was written to the log.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Diagnostics.MonitoringDescription("The name of a user associated with this event entry.")
  System.String To be added: an object of type 'string'

  This property is often blank for events in logs other than the Security log.

  Gets the name of the user who is responsible for this event.