다음을 통해 공유


TraceContextRecord(String, String, Boolean, Exception) 생성자

정의

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)

매개 변수

category
String

메시지를 받는 추적 범주입니다.

msg
String

추적 메시지입니다.

isWarning
Boolean

메서드와 연결된 메서드가 메서드 이면 />이고, 추적 메서드가 메서드이면 />입니다.

errorInfo
Exception

Exception 추가 오류 정보를 포함하는 개체입니다.

설명

메서드와 TraceContext.Warn 메서드를 TraceContext.Write 호출할 때마다 메시지 컬렉션에 TraceContextRecord 추가되는 개체가 TraceContextEventArgs.TraceRecords 생성됩니다. 메서드 호출은 Warn 속성을 설정 IsWarning 하지만 true메서드 호출은 Write 속성을 .로 false설정합니다.

적용 대상

추가 정보