EventProvider.SetActivityId(Guid) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the current activity identifier used by the WriteEvent methods.
public:
static void SetActivityId(Guid % id);
[System.Security.SecurityCritical]
public static void SetActivityId (ref Guid id);
[<System.Security.SecurityCritical>]
static member SetActivityId : Guid -> unit
Public Shared Sub SetActivityId (ByRef id As Guid)
- id
- Guid
A unique activity identifier that the CreateActivityId() method returns.
- Attributes
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.
Προϊόν | Εκδόσεις |
---|---|
.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 |
.NET σχόλια
.NET είναι ένα έργο ανοιχτού κώδικα. Επιλέξτε μια σύνδεση για να παρέχετε σχόλια: