CounterSetInstance CounterSetInstance CounterSetInstance CounterSetInstance Class


建立 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


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


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


Counters Counters Counters Counters

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


Dispose() Dispose() Dispose() Dispose()

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)