EventProviderTraceListener.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.
Overloads
TraceData(TraceEventCache, String, TraceEventType, Int32, Object) |
Writes trace information, a data object and event information to the listener specific output. |
TraceData(TraceEventCache, String, TraceEventType, Int32, Object[]) |
Writes trace information, a data object and event information to the listener specific output. |
TraceData(TraceEventCache, String, TraceEventType, Int32, Object)
Writes trace information, a data object and event information to the listener specific output.
public:
override void TraceData(System::Diagnostics::TraceEventCache ^ eventCache, System::String ^ source, System::Diagnostics::TraceEventType eventType, int id, System::Object ^ data);
public override sealed 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 NotOverridable 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 used to identify the output, typically the name of the application that generated the trace event.
- eventType
- TraceEventType
One of the TraceEventType values specifying the type of event that has caused the trace.
- id
- Int32
A numeric identifier for the event.
- data
- Object
The trace data to emit.
See also
Applies to
TraceData(TraceEventCache, String, TraceEventType, Int32, Object[])
Writes trace information, a data object and event information to the listener specific output.
public:
override void TraceData(System::Diagnostics::TraceEventCache ^ eventCache, System::String ^ source, System::Diagnostics::TraceEventType eventType, int id, ... cli::array <System::Object ^> ^ data);
public override sealed 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 NotOverridable 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 used to identify the output, typically the name of the application that generated the trace event.
- eventType
- TraceEventType
One of the TraceEventType values specifying the type of event that has caused the trace.
- id
- Int32
A numeric identifier for the event.
- data
- Object[]
An array of objects to emit as data.