EventSchemaTraceListener.TraceTransfer Method (TraceEventCache, String, Int32, String, Guid)
Writes trace information, including the identity of a related activity, a message, and event information, to the log file.
Assembly: System.Core (in System.Core.dll)
[SecurityCriticalAttribute] public override void TraceTransfer( TraceEventCache eventCache, string source, int id, string message, Guid relatedActivityId )
A TraceEventCache that contains the current process ID, thread ID, and stack trace information.
The source name.
A numeric identifier for the event.
A trace message to write.
The Guid.ToString(String) method is called to convert the relatedActivityId value to a "B" formatted string, which appears in the header. The Opcode element in the footer identifies the trace event type as a Transfer.method is used to correlate related traces. The eventCache, source, id, and relatedActivityId parameters are used in the header and footer of the trace. The id parameter is converted to an unsigned integer before it is written. Therefore, a negative id value is written as a large positive integer. The message parameter is written as the Data element. The
Available since 3.5