EventRecord.FormatDescription Method (IEnumerable<Object>)


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 event message, replacing variables in the message with the specified values.

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

public abstract string FormatDescription(
	IEnumerable<object> values


Type: System.Collections.Generic.IEnumerable<Object>

The values used to replace variables in the event message. Variables are represented by %n, where n is a number.

Return Value

Type: System.String

Returns a string that contains the event message in the current locale.

.NET Framework
Available since 3.5

FormatDescription Overload
EventRecord Class
System.Diagnostics.Eventing.Reader Namespace
Technology Summary for Reading and Managing Event Logs
Event Log Scenarios

Return to top