DiagnosticSource.StopActivity Method
Definition
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.
Overloads
StopActivity(Activity, Object) |
Stops the given Activity, maintains the global Current activity, and notifies consumers that the Activity was stopped. |
StopActivity<T>(Activity, T) |
StopActivity(Activity, Object)
- Source:
- DiagnosticSourceActivity.cs
- Source:
- DiagnosticSourceActivity.cs
- Source:
- DiagnosticSourceActivity.cs
public:
void StopActivity(System::Diagnostics::Activity ^ activity, System::Object ^ args);
public void StopActivity (System.Diagnostics.Activity activity, object? args);
public void StopActivity (System.Diagnostics.Activity activity, object args);
member this.StopActivity : System.Diagnostics.Activity * obj -> unit
Public Sub StopActivity (activity As Activity, args As Object)
Parameters
- activity
- Activity
The activity to be stopped.
- args
- Object
An object that represents the value passed as a payload for the event.
Remarks
Producers may pass additional details to the consumer in the payload.
Consumers can access Activity.Current to add context and/or augment telemetry.
Applies to
StopActivity<T>(Activity, T)
- Source:
- DiagnosticSourceActivity.cs
- Source:
- DiagnosticSourceActivity.cs
public:
generic <typename T>
void StopActivity(System::Diagnostics::Activity ^ activity, T args);
public void StopActivity<T> (System.Diagnostics.Activity activity, T args);
member this.StopActivity : System.Diagnostics.Activity * 'T -> unit
Public Sub StopActivity(Of T) (activity As Activity, args As T)
Type Parameters
- T
Parameters
- activity
- Activity
- args
- T
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET