Debugger.Log(Int32, String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會針對附帶的除錯器發布訊息。
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
要表達的訊息。
備註
若未附加除錯器,此方法無效。 除錯器可能會回報訊息,也可能不會,取決於它的設定。
Note
類別參數限制為 256 個字元。 超過 256 字元的字串會被截斷。