IncrementingEventCounter(String, EventSource) Constructor

Definition

Initializes a new instance of the IncrementingEventCounter class.

public:
 IncrementingEventCounter(System::String ^ name, System::Diagnostics::Tracing::EventSource ^ eventSource);
public IncrementingEventCounter (string name, System.Diagnostics.Tracing.EventSource eventSource);
new System.Diagnostics.Tracing.IncrementingEventCounter : string * System.Diagnostics.Tracing.EventSource -> System.Diagnostics.Tracing.IncrementingEventCounter
Public Sub New (name As String, eventSource As EventSource)

Parameters

name
String

The name for this IncrementingEventCounter instance.

eventSource
EventSource

The event source.

Remarks

IncrementingEventCounter live as long as the EventSource that they are attached to unless they are explicitly disposed.

Applies to