WebEventFormatter.AppendLine(String) Metod

Definition

Lägger till den angivna strängen och en vagn återgår till händelseinformationen.

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

Parametrar

s
String

Strängen som ska läggas till i händelseinformationen.

Exempel

I följande kodexempel visas hur metoden AppendLine används.

  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)

Kommentarer

Med AppendLine metoden kan du anpassa händelseinformationen genom att lägga till egna händelsespecifika data.

Gäller för