EntryWrittenEventArgs Constructor (EventLogEntry)

 

Initializes a new instance of the EntryWrittenEventArgs class with the specified event log entry.

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

new : 
        entry:EventLogEntry -> EntryWrittenEventArgs

Parameters

entry
Type: System.Diagnostics.EventLogEntry

An EventLogEntry that represents the entry that was written.

The following example demonstrates the EntryWrittenEventArgs constructor. It creates a custom EventLog object and writes an entry into it. Then it creates an EntryWrittenEventArgs object using the first entry in the custom EventLog. This object is used to notify a message.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: