Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


EventProvider.SetActivityId(Guid) Method

Definition

Sets the current activity identifier used by the WriteEvent methods.

C#
[System.Security.SecurityCritical]
public static void SetActivityId (ref Guid id);

Parameters

id
Guid

A unique activity identifier that the CreateActivityId() method returns.

Attributes

Remarks

The identifier is stored in the thread context.

Note that in version 3.5 of the .NET framework, you had to set the id parameter of this method and the ActivityId property value to the same identifier value. However, in version 4.0 of the framework, the SetActivityId method automatically sets the correlation activity identifier for you.

This is a static method.

Applies to

Προϊόν Εκδόσεις
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1