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 命名空间