EventCounter(String, EventSource) Constructor

Definition

Initializes a new instance of the EventCounter class.

C#
public EventCounter(string name, System.Diagnostics.Tracing.EventSource eventSource);

Parameters

name
String

The event counter name.

eventSource
EventSource

The event source.

Exceptions

name is null.

-or-

eventSource is null.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.5, 1.6, 2.0, 2.1