共用方式為


DiagnosticListener.OnActivityImport(Activity, Object) 方法

定義

叫用所有訂閱者的 OnActivityImport 方法。

public:
 override void OnActivityImport(System::Diagnostics::Activity ^ activity, System::Object ^ payload);
public override void OnActivityImport (System.Diagnostics.Activity activity, object? payload);
public override void OnActivityImport (System.Diagnostics.Activity activity, object payload);
override this.OnActivityImport : System.Diagnostics.Activity * obj -> unit
Public Overrides Sub OnActivityImport (activity As Activity, payload As Object)

參數

activity
Activity

受外部事件影響的活動。

payload
Object

表示傳入要求的物件。

適用於