EventLogRecord.FormatDescription Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the event message.
Overloads
FormatDescription() |
Gets the event message in the current locale. |
FormatDescription(IEnumerable<Object>) |
Gets the event message, replacing variables in the message with the specified values. |
FormatDescription()
- Source:
- EventLogRecord.cs
- Source:
- EventLogRecord.cs
Gets the event message in the current locale.
public:
override System::String ^ FormatDescription();
public override string FormatDescription ();
override this.FormatDescription : unit -> string
Public Overrides Function FormatDescription () As String
Returns
Returns a string that contains the event message in the current locale.
See also
Applies to
FormatDescription(IEnumerable<Object>)
- Source:
- EventLogRecord.cs
- Source:
- EventLogRecord.cs
Gets the event message, replacing variables in the message with the specified values.
public:
override System::String ^ FormatDescription(System::Collections::Generic::IEnumerable<System::Object ^> ^ values);
public override string FormatDescription (System.Collections.Generic.IEnumerable<object> values);
override this.FormatDescription : seq<obj> -> string
Public Overrides Function FormatDescription (values As IEnumerable(Of Object)) As String
Parameters
- values
- IEnumerable<Object>
The values used to replace variables in the event message. Variables are represented by %n, where n is a number.
Returns
Returns a string that contains the event message in the current locale.