DiagnosticSource.StopActivity 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
StopActivity(Activity, Object) | |
StopActivity<T>(Activity, T) |
StopActivity(Activity, Object)
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)
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