Bewerken

Share via


DiagnosticCounter Class

Definition

DiagnosticCounter is an abstract class that serves as the parent class for various Counter* classes, namely EventCounter, PollingCounter, IncrementingEventCounter, and IncrementingPollingCounter.

public ref class DiagnosticCounter abstract : IDisposable
public abstract class DiagnosticCounter : IDisposable
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public abstract class DiagnosticCounter : IDisposable
type DiagnosticCounter = class
    interface IDisposable
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type DiagnosticCounter = class
    interface IDisposable
Public MustInherit Class DiagnosticCounter
Implements IDisposable
Inheritance
DiagnosticCounter
Derived
Attributes
Implements

Properties

DisplayName

Gets or sets the display name of the counter.

DisplayUnits

Gets or sets the display units of the counter.

EventSource

Gets the EventSource that this counter is attached to.

Name

Gets the name of this counter.

Methods

AddMetadata(String, String)

Adds key-value metadata to the counter that will be included as a part of the payload.

Dispose()

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

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to