語言

DiagnosticCounter 類別

定義

DiagnosticCounter 是一個抽象類別,作為各種 Counter* 類別的父類別,分別為 EventCounter、 PollingCounter、 IncrementingEventCounter、 IncrementingPollingCounter和 。

public ref class DiagnosticCounter abstract : IDisposable
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public abstract class DiagnosticCounter : IDisposable
public abstract class DiagnosticCounter : IDisposable
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type DiagnosticCounter = class
    interface IDisposable
type DiagnosticCounter = class
    interface IDisposable
Public MustInherit Class DiagnosticCounter
Implements IDisposable
繼承
DiagnosticCounter
衍生
屬性
實作

屬性

名稱 Description
DisplayName

取得或設定計數器的顯示名稱。

DisplayUnits

取得或設定計數器的顯示單元。

EventSource

取得這個計數器所附帶的事件源。

Name

知道這個櫃檯的名字。

方法

名稱 Description
AddMetadata(String, String)

將鍵值元資料加入計數器,作為有效載荷的一部分。

Dispose()

移除該指示物,從該集合中移除該 EventSource 計算物。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於