WebEventFormatter.AppendLine Method (String)

 

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

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

public void AppendLine(
	string s
)

Parameters

s
Type: System.String

The string to add to the event information.

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

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 *");

.NET Framework
Available since 2.0
Return to top
Show: