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メソッドを使用すると、独自のイベント固有のデータを追加することで、イベント情報をカスタマイズできます。

適用対象