EventRecord.FormatDescription 方法

定义

获取事件消息。Gets the event message.

重载

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()

获取当前区域设置中的事件消息。Gets the event message in the current locale.

public:
 abstract System::String ^ FormatDescription();
public abstract string FormatDescription ();
abstract member FormatDescription : unit -> string
Public MustOverride Function FormatDescription () As String

返回

String

返回一个包含当前区域设置中的事件消息的字符串。Returns a string that contains the event message in the current locale.

另请参阅

适用于

产品 已引入

FormatDescription(IEnumerable<Object>)

获取事件消息,将消息中的变量替换为指定值。Gets the event message, replacing variables in the message with the specified values.

public:
 abstract System::String ^ FormatDescription(System::Collections::Generic::IEnumerable<System::Object ^> ^ values);
public abstract string FormatDescription (System.Collections.Generic.IEnumerable<object> values);
abstract member FormatDescription : seq<obj> -> string
Public MustOverride Function FormatDescription (values As IEnumerable(Of Object)) As String

参数

values
IEnumerable<Object>

用于替换事件消息中的变量的值。The values used to replace variables in the event message. 变量用 %n 表示,其中 n 是一个数字。Variables are represented by %n, where n is a number.

返回

String

返回一个包含当前区域设置中的事件消息的字符串。Returns a string that contains the event message in the current locale.

另请参阅

适用于

产品 已引入