Compartilhar via


EventCounter(String, EventSource) Construtor

Definição

Inicializa uma nova instância da classe EventCounter.

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

Parâmetros

name
String

O nome do contador de eventos.

eventSource
EventSource

A fonte do evento.

Exceções

name é null.

- ou -

eventSource é null.

Aplica-se a