WebPageTraceListener.TraceEvent 메서드

정의

웹 페이지나 ASP.NET 추적 뷰어에 이벤트 메시지를 씁니다.

오버로드

TraceEvent(TraceEventCache, String, TraceEventType, Int32, String)

지정된 시스템 및 이벤트 데이터를 사용하여 웹 페이지나 ASP.NET 추적 뷰어에 이벤트 메시지를 씁니다.

TraceEvent(TraceEventCache, String, TraceEventType, Int32, String, Object[])

지정된 시스템 및 이벤트 데이터를 사용하여 웹 페이지나 ASP.NET 추적 뷰어에 지역화된 이벤트 메시지를 씁니다.

TraceEvent(TraceEventCache, String, TraceEventType, Int32, String)

지정된 시스템 및 이벤트 데이터를 사용하여 웹 페이지나 ASP.NET 추적 뷰어에 이벤트 메시지를 씁니다.

public:
 override void TraceEvent(System::Diagnostics::TraceEventCache ^ eventCache, System::String ^ source, System::Diagnostics::TraceEventType severity, int id, System::String ^ message);
public override void TraceEvent (System.Diagnostics.TraceEventCache eventCache, string source, System.Diagnostics.TraceEventType severity, int id, string message);
override this.TraceEvent : System.Diagnostics.TraceEventCache * string * System.Diagnostics.TraceEventType * int * string -> unit
Public Overrides Sub TraceEvent (eventCache As TraceEventCache, source As String, severity As TraceEventType, id As Integer, message As String)

매개 변수

eventCache
TraceEventCache

현재 프로세스, 스레드 ID 및 스택 추적 정보가 포함된 TraceEventCache입니다.

source
String

출력을 구성하는 데 사용되는 범주 이름입니다.

severity
TraceEventType

TraceEventType 값 중 하나입니다.

id
Int32

이벤트의 숫자 식별자입니다.

message
String

쓸 메시지입니다.

설명

메서드는 TraceEvent 범주 및 message 메시지 TraceContext 로 사용 하 여 source 개체에 이벤트 메시지를 씁니다.

추가 정보

적용 대상

TraceEvent(TraceEventCache, String, TraceEventType, Int32, String, Object[])

지정된 시스템 및 이벤트 데이터를 사용하여 웹 페이지나 ASP.NET 추적 뷰어에 지역화된 이벤트 메시지를 씁니다.

public:
 override void TraceEvent(System::Diagnostics::TraceEventCache ^ eventCache, System::String ^ source, System::Diagnostics::TraceEventType severity, int id, System::String ^ format, ... cli::array <System::Object ^> ^ args);
public override void TraceEvent (System.Diagnostics.TraceEventCache eventCache, string source, System.Diagnostics.TraceEventType severity, int id, string format, params object[] args);
override this.TraceEvent : System.Diagnostics.TraceEventCache * string * System.Diagnostics.TraceEventType * int * string * obj[] -> unit
Public Overrides Sub TraceEvent (eventCache As TraceEventCache, source As String, severity As TraceEventType, id As Integer, format As String, ParamArray args As Object())

매개 변수

eventCache
TraceEventCache

현재 프로세스, 스레드 ID 및 스택 추적 정보가 포함된 TraceEventCache입니다.

source
String

출력을 구성하는 데 사용되는 범주 이름입니다.

severity
TraceEventType

TraceEventType 값 중 하나입니다.

id
Int32

이벤트의 숫자 식별자입니다.

format
String

args의 개체에 해당하는 0개 이상의 서식 지정 항목이 포함된 서식 문자열입니다.

args
Object[]

형식을 지정할 개체를 0개 이상 포함하는 배열입니다.

설명

메서드는 TraceEvent 메서드를 Format(IFormatProvider, String, Object[]) 호출하고, 속성을 전달 format 하고 args 사용하여 InvariantCulture 문자열을 추적 뷰어 또는 웹 페이지에 쓸 메시지로 형식을 지정합니다.

추가 정보

적용 대상