This topic has not yet been rated - Rate this topic

EventSource.WriteEventWithRelatedActivityId Method

[This topic is preliminary and is subject to change.]

Writes an event that indicates that the current activity is related to another activity.

Namespace:  System.Diagnostics.Tracing
Assembly:  mscorlib (in mscorlib.dll)
protected void WriteEventWithRelatedActivityId(
	int eventId,
	Guid childActivityID,
	params Object[] args
)

Parameters

eventId
Type: System.Int32

An identifier that uniquely identifies this event within the EventSource.

childActivityID
Type: System.Guid

The related activity identifier.

args
Type: System.Object[]

An array of objects that contain data about the event, or null if only the childActivityID is needed.

The WriteEventWithRelatedActivityId method logs a transfer event. The activity of the current thread is logged with the event, and this allows two activities to be related by a consumer of events.

.NET Framework

Supported in: 4.5

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.