TraceContextRecord(String, String, Boolean, Exception) Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy TraceContextRecord.

public:
 TraceContextRecord(System::String ^ category, System::String ^ msg, bool isWarning, Exception ^ errorInfo);
public TraceContextRecord (string category, string msg, bool isWarning, Exception errorInfo);
new System.Web.TraceContextRecord : string * string * bool * Exception -> System.Web.TraceContextRecord
Public Sub New (category As String, msg As String, isWarning As Boolean, errorInfo As Exception)

Parametry

category
String

Kategoria śledzenia, która odbiera komunikat.

msg
String

Komunikat śledzenia.

isWarning
Boolean

true jeśli metoda skojarzona z TraceContextRecord metodą jest Warn metodą ; false jeśli metoda śledzenia jest Write metodą .

errorInfo
Exception

Exception Obiekt zawierający dodatkowe informacje o błędzie.

Uwagi

Każde wywołanie TraceContext.Write metod i TraceContext.Warn generuje TraceContextRecord obiekt dodawany do kolekcji komunikatów TraceContextEventArgs.TraceRecords . Wywołanie Warn metody ustawia IsWarning właściwość na true, a Write metoda wywołuje metodę na false.

Dotyczy

Zobacz też