Markers.WriteMessage 方法 (Int32, String)

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

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

語法

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

參數

  • category
    型別:System.Int32
    訊息的分類。任何整數是有效的。

.NET Framework 安全性

請參閱

參考

Markers 類別

WriteMessage 多載

Microsoft.ConcurrencyVisualizer.Instrumentation 命名空間