The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
EventSource::SetCurrentThreadActivityId Method
.NET Framework (current version)
[Supported in the .NET Framework 4.5.1 and later versions]
Sets the activity ID on the current thread.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | SetCurrentThreadActivityId(Guid) | [Supported in the .NET Framework 4.5.1 and later versions] Sets the activity ID on the current thread. |
![]() ![]() | SetCurrentThreadActivityId(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. |
Show:

