EventSource.SetCurrentThreadActivityId Method

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

[Supported in the .NET Framework 4.5.1 and later versions]

Sets the activity ID on the current thread.

Namespace:   System.Diagnostics.Tracing
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticSetCurrentThreadActivityId(Guid)

[Supported in the .NET Framework 4.5.1 and later versions]

Sets the activity ID on the current thread.

System_CAPS_pubmethodSystem_CAPS_staticSetCurrentThreadActivityId(Guid, Guid)

[Supported in the .NET Framework 4.5.1 and later versions]

Sets the activity ID on the current thread, and returns the previous activity ID.

Return to top
Show: