IncrementingPollingCounter(String, EventSource, Func<Double>) 构造函数

定义

初始化 IncrementingPollingCounter 类的新实例。

public:
 IncrementingPollingCounter(System::String ^ name, System::Diagnostics::Tracing::EventSource ^ eventSource, Func<double> ^ totalValueProvider);
public IncrementingPollingCounter (string name, System.Diagnostics.Tracing.EventSource eventSource, Func<double> totalValueProvider);
new System.Diagnostics.Tracing.IncrementingPollingCounter : string * System.Diagnostics.Tracing.EventSource * Func<double> -> System.Diagnostics.Tracing.IncrementingPollingCounter
Public Sub New (name As String, eventSource As EventSource, totalValueProvider As Func(Of Double))

参数

name
String

IncrementingPollingCounter 实例的名称。

eventSource
EventSource

此实例所属的事件源。

totalValueProvider
Func<Double>

将用于轮询值的方法。

适用于