WebEventFormatter.AppendLine(String) Method

Definition

Appends the specified string and a carriage return to the event information.

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

Parameters

s
String

The string to add to the event information.

Examples

The following code example shows how to use the AppendLine method.

  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)

Remarks

The AppendLine method allows you to customize the event information by adding your own event-specific data.

Applies to