Writes a trace transfer message to the trace listeners in the Listeners collection using the specified numeric identifier, message, and related activity identifier.
Assembly: System (in System.dll)
[ConditionalAttribute("TRACE")] public void TraceTransfer( int id, string message, Guid relatedActivityId )
The method calls the TraceTransfer method of each trace listener in the Listeners property to write the trace information. The default TraceTransfer method in the base TraceListener class calls the TraceListener.TraceEvent(TraceEventCache, String, TraceEventType, Int32, String) method to process the call, setting eventType to TraceEventType.Transfer and appending a string representation of the relatedActivityId GUID to message.
is intended to be used with the logical operations of a CorrelationManager. The relatedActivityId parameter relates to the ActivityId property of a CorrelationManager object. If a logical operation begins in one activity and transfers to another, the second activity logs the transfer by calling the method. The call relates the new activity identity to the previous identity. The most likely consumer of this functionality is a trace viewer that can report logical operations that span multiple activities.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.