This documentation is archived and is not being maintained.

WebEventFormatter.AppendLine Method

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

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: