This topic has not yet been rated - Rate this topic

EventSource.WriteEventWithRelatedActivityIdCore Method

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

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

This API is not CLS-compliant. 

Namespace:  System.Diagnostics.Tracing
Assembly:  mscorlib (in mscorlib.dll)
[CLSCompliantAttribute(false)]
protected void WriteEventWithRelatedActivityIdCore(
	int eventId,
	Guid* childActivityID,
	int eventDataCount,
	EventSource.EventData* data
)

Parameters

eventId
Type: System.Int32

An identifier that uniquely identifies this event within the EventSource.

childActivityID
Type: System.Guid*

A pointer to the GUID of the child activity ID.

eventDataCount
Type: System.Int32

The number of items in the data field.

data
Type: System.Diagnostics.Tracing.EventSource.EventData*

A pointer to the first item in the event data field.

WriteEventWithRelatedActivityIdCore is similar to the WriteEventWithRelatedActivityId method but offers better performance, bevcause it does not have to unbox the childActivityID and data arguments.

.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.