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 Sub AppendLine (
	s As String
)

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 *")
formatter.AppendLine("Custom information goes here")
formatter.AppendLine("* SampleWebBaseEvent End *")
' Display custom event timing.
formatter.AppendLine(customCreatedMsg)
formatter.AppendLine(customRaisedMsg)

.NET Framework
Available since 2.0
Return to top
Show: