共用方式為


MarkerSeries.WriteMessage 方法 (Int32, String)

以指定的重要層級和文字,將訊息寫入至並行視覺化檢視追蹤檔案。 文字是由 format 和 args 參數指定的。

命名空間:  Microsoft.ConcurrencyVisualizer.Instrumentation
組件:  Microsoft.ConcurrencyVisualizer.Markers (在 Microsoft.ConcurrencyVisualizer.Markers.dll 中)

語法

'宣告
Public Sub WriteMessage ( _
    category As Integer, _
    text As String _
)
public void WriteMessage(
    int category,
    string text
)
public:
void WriteMessage(
    int category, 
    String^ text
)
member WriteMessage : 
        category:int * 
        text:string -> unit
public function WriteMessage(
    category : int, 
    text : String
)

參數

  • category
    類型:Int32

    訊息的分類。 任何整數有效。

  • text
    類型:String

    訊息的描述。

.NET Framework 安全性

請參閱

參考

MarkerSeries 類別

WriteMessage 多載

Microsoft.ConcurrencyVisualizer.Instrumentation 命名空間