EventCounter.WriteMetric Method

Definition

Overloads

WriteMetric(Double)

Writes the metric if performance counters are on.

WriteMetric(Single)

Writes the metric if performance counters are on.

WriteMetric(Double)

Source:
EventCounter.cs
Source:
EventCounter.cs
Source:
EventCounter.cs

Writes the metric if performance counters are on.

public:
 void WriteMetric(double value);
public void WriteMetric (double value);
member this.WriteMetric : double -> unit
Public Sub WriteMetric (value As Double)

Parameters

value
Double

The value to be written.

Remarks

For an example of how to use the WriteMetric(Single) method, see Introduction Tutorial: How to measure performance for very frequent events using EventCounters.

Applies to

WriteMetric(Single)

Source:
EventCounter.cs
Source:
EventCounter.cs
Source:
EventCounter.cs

Writes the metric if performance counters are on.

public:
 void WriteMetric(float value);
public void WriteMetric (float value);
member this.WriteMetric : single -> unit
Public Sub WriteMetric (value As Single)

Parameters

value
Single

The value to be written.

Remarks

For an example of how to use the WriteMetric(Single) method, see the Introduction Tutorial: How to measure performance for very frequent events using EventCounters topic.

Applies to