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.

另請參閱

適用於