語言

WebEventFormatter.AppendLine(String) 方法

定義

在事件資訊中附加指定的字串和回車。

public:
 void AppendLine(System::String ^ s);
public void AppendLine(string s);
member this.AppendLine : string -> unit
Public Sub AppendLine (s As String)

參數

s
String

加入事件資訊的字串。

範例

下列程式代碼範例示範如何使用 AppendLine 方法。

  formatter.AppendLine(
       "*SampleWebBaseEvent Start *");

  // Display custom event information.
  formatter.AppendLine(customCreatedMsg);
  formatter.AppendLine(customRaisedMsg);
  formatter.AppendLine(firingRecordInfo);

  formatter.AppendLine(
"* SampleWebBaseEvent End *");
formatter.AppendLine("*SampleWebBaseEvent Start *")
formatter.AppendLine("Custom information goes here")
formatter.AppendLine("* SampleWebBaseEvent End *")
' Display custom event timing.
formatter.AppendLine(customCreatedMsg)
formatter.AppendLine(customRaisedMsg)

備註

此 AppendLine 方法允許您透過新增專屬事件資料來自訂事件資訊。

適用於