共用方式為


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>

將會用來輪詢值的方法。

適用於