This documentation is archived and is not being maintained.

EventLogRecord::ToXml Method

Gets the XML representation of the event. All of the event properties are represented in the event's XML. The XML conforms to the event schema.

Namespace:  System.Diagnostics.Eventing.Reader
Assembly:  System.Core (in System.Core.dll)

public:
virtual String^ ToXml() override

Return Value

Type: System::String
Returns a string that contains the XML representation of the event.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

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

.NET Framework

Supported in: 3.5
Show: