IisTraceListener.TraceData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes trace data to the output of the IisTraceListener class.
Overloads
TraceData(TraceEventCache, String, TraceEventType, Int32, Object) |
Writes trace information, a data object, and event information to the output of the IisTraceListener class. |
TraceData(TraceEventCache, String, TraceEventType, Int32, Object[]) |
Writes trace information, an array of data objects, and event information to the output of the IisTraceListener class. |
Remarks
TraceData is introduced in the .NET Framework 3.5. For more information, see Versions and Dependencies.
TraceData(TraceEventCache, String, TraceEventType, Int32, Object)
Writes trace information, a data object, and event information to the output of the IisTraceListener class.
public:
override void TraceData(System::Diagnostics::TraceEventCache ^ eventCache, System::String ^ source, System::Diagnostics::TraceEventType eventType, int id, System::Object ^ data);
public override void TraceData (System.Diagnostics.TraceEventCache eventCache, string source, System.Diagnostics.TraceEventType eventType, int id, object data);
override this.TraceData : System.Diagnostics.TraceEventCache * string * System.Diagnostics.TraceEventType * int * obj -> unit
Public Overrides Sub TraceData (eventCache As TraceEventCache, source As String, eventType As TraceEventType, id As Integer, data As Object)
Parameters
- eventCache
- TraceEventCache
A TraceEventCache object that contains the current process ID, thread ID, and stack trace information.
- source
- String
A name that identifies the output. This is typically the name of the application that generated the trace event.
- eventType
- TraceEventType
A TraceEventType value that specifies the type of event that caused the trace.
- id
- Int32
A numeric identifier for the event.
- data
- Object
The trace data to write.
Remarks
This method is not intended to be called directly by application code. The members of the System.Diagnostics.Debug, System.Diagnostics.Trace, and System.Diagnostics.TraceSource classes use this method to write trace data.
TraceData is introduced in the .NET Framework 3.5. For more information, see Versions and Dependencies.
Applies to
TraceData(TraceEventCache, String, TraceEventType, Int32, Object[])
Writes trace information, an array of data objects, and event information to the output of the IisTraceListener class.
public:
override void TraceData(System::Diagnostics::TraceEventCache ^ eventCache, System::String ^ source, System::Diagnostics::TraceEventType eventType, int id, ... cli::array <System::Object ^> ^ data);
public override void TraceData (System.Diagnostics.TraceEventCache eventCache, string source, System.Diagnostics.TraceEventType eventType, int id, params object[] data);
override this.TraceData : System.Diagnostics.TraceEventCache * string * System.Diagnostics.TraceEventType * int * obj[] -> unit
Public Overrides Sub TraceData (eventCache As TraceEventCache, source As String, eventType As TraceEventType, id As Integer, ParamArray data As Object())
Parameters
- eventCache
- TraceEventCache
A TraceEventCache object that contains the current process ID, thread ID, and stack trace information.
- source
- String
A name that identifies the output. This is typically the name of the application that generated the trace event.
- eventType
- TraceEventType
A TraceEventType value that specifies the type of event that caused the trace.
- id
- Int32
A numeric identifier for the event.
- data
- Object[]
An array of objects to write as data.
Remarks
This method is not intended to be called directly by application code. The members of the System.Diagnostics.Debug, System.Diagnostics.Trace, and System.Diagnostics.TraceSource classes use this method to write trace data.
TraceData is introduced in the .NET Framework 3.5. For more information, see Versions and Dependencies.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기