DiagnosticSource.StopActivity 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
StopActivity(Activity, Object) | |
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)
参数
- activity
- Activity
要停止的活动。
- args
- Object
一个对象,它表示作为事件的有效负载传递的值。
注解
生成者可将其他详细信息传递给有效负载中的使用者。
使用者可以访问 Activity.Current 以添加上下文和/或扩充遥测数据。
适用于
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)
类型参数
- T
参数
- activity
- Activity
- args
- T