Bewerken

Share via


ActivitySource.HasListeners Method

Definition

Checks if there are any listeners for this activity source.

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

Returns

true if there is a listener registered for this activity source; otherwise, false.

Applies to