WebEventFormatter.AppendLine(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在事件資訊中附加指定的字串和回車。
public:
void AppendLine(System::String ^ s);
public void AppendLine(string s);
member this.AppendLine : string -> unit
Public Sub AppendLine (s As String)
參數
- s
- String
加入事件資訊的字串。
範例
下列程式代碼範例示範如何使用 AppendLine 方法。
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)
備註
此 AppendLine 方法允許您透過新增專屬事件資料來自訂事件資訊。