CounterSet 類別

定義

定義一組邏輯計數器。

public ref class CounterSet : IDisposable
public class CounterSet : IDisposable
type CounterSet = class
    interface IDisposable
Public Class CounterSet
Implements IDisposable
繼承
CounterSet
實作

範例

如需範例,請參閱 System.Diagnostics.PerformanceData

備註

Dispose當您完成移除提供者的註冊並釋放所有 Managed 和 Unmanaged 資源時,請呼叫 方法。

建構函式

CounterSet(Guid, Guid, CounterSetInstanceType)

初始化 CounterSet 類別的新執行個體。

方法

AddCounter(Int32, CounterType)

使用指定的計數器識別項和型別,將計數器加入至計數器集合。

AddCounter(Int32, CounterType, String)

使用指定的計數器識別項和型別以及計數器的顯示名稱,將計數器加入至計數器集合。

CreateCounterSetInstance(String)

建立計數器集合的執行個體。

Dispose()

釋放這個物件使用的所有 Unmanaged 資源。

Dispose(Boolean)

釋放此物件所使用的全部 Unmanaged 資源,並選擇性地釋放 Managed 資源。

Equals(Object)

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

(繼承來源 Object)
Finalize()

在記憶體回收收回物件前釋放資源。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於