語言

ActivitySource.HasListeners 方法

定義

檢查是否有聽眾收聽此活動來源。

public:
 bool HasListeners();
public bool HasListeners();
member this.HasListeners : unit -> bool
Public Function HasListeners () As Boolean

傳回

true如果有登記的聽眾為此活動來源;否則,。 false

適用於