Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Activity.Current Property

Definition

Namespace:
System.Diagnostics
Assembly:
System.Diagnostics.DiagnosticSource.dll
Package:
System.Diagnostics.DiagnosticSource v11.0.0-preview.5.26302.115
Source:
Activity.cs
Source:
Activity.cs
Source:
Activity.Current.net46.cs
Source:
Activity.Current.net46.cs
Source:
Activity.Current.net46.cs
Source:
Activity.cs
Source:
Activity.cs

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.

Gets or sets the current operation (Activity) for the current thread. This flows across async calls.

public:
 static property System::Diagnostics::Activity ^ Current { System::Diagnostics::Activity ^ get(); void set(System::Diagnostics::Activity ^ value); };
public:
 static property System::Diagnostics::Activity ^ Current { System::Diagnostics::Activity ^ get(); };
public static System.Diagnostics.Activity? Current { get; set; }
public static System.Diagnostics.Activity Current { get; }
public static System.Diagnostics.Activity Current { get; set; }
static member Current : System.Diagnostics.Activity with get, set
static member Current : System.Diagnostics.Activity
Public Shared Property Current As Activity
Public Shared ReadOnly Property Current As Activity

Property Value

The current operation for the current thread.

Applies to


Feedback

Was this page helpful?