EventCounter.WriteMetric Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für