CounterSet クラス
定義
論理カウンターのセットを定義します。Defines a set of logical counters.
public ref class CounterSet : IDisposable
public class CounterSet : IDisposable
type CounterSet = class
interface IDisposable
Public Class CounterSet
Implements IDisposable
- 継承
-
CounterSet
- 実装
例
例については、「System.Diagnostics.PerformanceData」を参照してください。For an example, see System.Diagnostics.PerformanceData.
注釈
Disposeプロバイダーの登録を削除し、すべてのマネージリソースとアンマネージリソースを解放するには、メソッドを呼び出します。Call the Dispose method when you are finished to remove your provider's registration and to release all managed and unmanaged resources.
コンストラクター
CounterSet(Guid, Guid, CounterSetInstanceType) |
CounterSet クラスの新しいインスタンスを初期化します。Initializes a new instance of the CounterSet class. |
メソッド
AddCounter(Int32, CounterType) |
指定したカウンター ID とカウンター タイプを使用して、カウンター セットにカウンターを追加します。Adds a counter to the counter set by using the specified counter identifier and type. |
AddCounter(Int32, CounterType, String) |
指定したカウンター ID、カウンター タイプ、およびカウンターの表示名を使用して、カウンター セットにカウンターを追加します。Adds a counter to the counter set by using the specified counter identifier and type and a display name for the counter. |
CreateCounterSetInstance(String) |
カウンター セットのインスタンスを作成します。Creates an instance of the counter set. |
Dispose() |
このオブジェクトによって使用されているすべてのアンマネージ リソースを解放します。Releases all unmanaged resources used by this object. |
Dispose(Boolean) |
このオブジェクトによって使用されているすべてのアンマネージド リソースを解放し、オプションでマネージド リソースも解放します。Releases all unmanaged resources used by this object and optionally release the managed resources. |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object. (継承元 Object) |
Finalize() |
ガベージ コレクションでオブジェクトがクリアされる前に、リソースを解放します。Frees resources before the object is reclaimed by garbage collection. |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
ToString() |
現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object. (継承元 Object) |