EventLogEntry.Data Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the binary data associated with the entry.

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

public byte[] Data { get; }

Property Value

Type: System.Byte[]

An array of bytes that holds the binary data associated with the entry.

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.

.NET Framework
Available since 1.1
Return to top
Show: