Debugger.Log(Int32, String, String) 方法

定義

張貼已附加偵錯工具的訊息。

public:
 static void Log(int level, System::String ^ category, System::String ^ message);
public static void Log (int level, string? category, string? message);
public static void Log (int level, string category, string message);
static member Log : int * string * string -> unit
Public Shared Sub Log (level As Integer, category As String, message As String)

參數

level
Int32

訊息重要性的說明。

category
String

訊息的分類。

message
String

要顯示的訊息。

備註

如果沒有附加調試程序,這個方法就不會有任何作用。 調試程式可能會或可能不會報告訊息,視其設定而定。

注意

類別參數限制為 256 個字元。 超過256個字元的字串會被截斷。

適用於