Прочетете на английски Редактиране

Споделяне чрез


DiagnosticCounter.Dispose Method

Definition

Removes the counter from the set that the EventSource will report on.

C#
public void Dispose();

Implements

Remarks

After being disposed, this counter will do nothing, and its resources will be reclaimed when all references to it are removed. If an EventCounter is not explicitly disposed, it will be cleaned up automatically when the EventSource it's attached to dies.

Applies to

Продукт Версии
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1