CounterSetInstance 類別

定義

建立 CounterSet 類別中定義之邏輯計數器的執行個體。Creates an instance of the logical counters defined in the CounterSet class.

public ref class CounterSetInstance sealed : IDisposable
public sealed class CounterSetInstance : IDisposable
type CounterSetInstance = class
    interface IDisposable
Public NotInheritable Class CounterSetInstance
Implements IDisposable
繼承
CounterSetInstance
實作

範例

如需範例,請參閱 System.Diagnostics.PerformanceDataFor an example, see System.Diagnostics.PerformanceData.

備註

CounterSet.CreateCounterSetInstance方法會傳回這個類別的實例。The CounterSet.CreateCounterSetInstance method returns an instance of this class.

屬性

Counters

擷取計數器集合執行個體的計數器資料集合。Retrieves the collection of counter data for the counter set instance.

方法

Dispose()

釋放這個物件使用的所有 Unmanaged 資源。Releases all unmanaged resources used by this object.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
Finalize()

釋放 Unmanaged 資源並執行其他清除作業。Releases unmanaged resources and performs other cleanup operations.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於