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
型別:System.Int32
訊息的分類。正確的任何整數。
- text
型別:System.String
訊息的描述。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。