Bagikan melalui


MarkerSeries.WriteMessage Method (Importance, String, array<Object )

Writes a message to the Concurrency Visualizer trace file with the specified importance level and text. The text is specified by the format and args parameters.

Namespace:  Microsoft.ConcurrencyVisualizer.Instrumentation
Assembly:  Microsoft.ConcurrencyVisualizer.Markers (in Microsoft.ConcurrencyVisualizer.Markers.dll)

Syntax

'Declaration
Public Sub WriteMessage ( _
    level As Importance, _
    format As String, _
    ParamArray args As Object() _
)
public void WriteMessage(
    Importance level,
    string format,
    params Object[] args
)
public:
void WriteMessage(
    Importance level, 
    String^ format, 
    ... array<Object^>^ args
)
member WriteMessage : 
        level:Importance * 
        format:string * 
        args:Object[] -> unit
public function WriteMessage(
    level : Importance, 
    format : String, 
    ... args : Object[]
)

Parameters

  • format
    Type: String

    A composite format string that contains text intermixed with zero or more format items, which correspond to objects in the args array

  • args
    Type: array<Object[]

    An object array containing zero or more objects to format.

.NET Framework Security

See Also

Reference

MarkerSeries Class

WriteMessage Overload

Microsoft.ConcurrencyVisualizer.Instrumentation Namespace