共用方式為


ActivityListener.ShouldListenTo 屬性

定義

取得或設定回呼,允許決定是否應該接聽使用活動來源物件所建立的活動物件事件。

public:
 property Func<System::Diagnostics::ActivitySource ^, bool> ^ ShouldListenTo { Func<System::Diagnostics::ActivitySource ^, bool> ^ get(); void set(Func<System::Diagnostics::ActivitySource ^, bool> ^ value); };
public Func<System.Diagnostics.ActivitySource,bool>? ShouldListenTo { get; set; }
member this.ShouldListenTo : Func<System.Diagnostics.ActivitySource, bool> with get, set
Public Property ShouldListenTo As Func(Of ActivitySource, Boolean)

屬性值

true 接聽事件; false 否則。

適用於