System.Diagnostics.CounterSample: Method Members

The methods of System.Diagnostics.CounterSample are listed below. For a list of all members, see the CounterSample Members list.

See Also: Inherited members from System.ValueType

Public Methods

static
Calculate(CounterSample) : float

Calculates the performance data of the counter, using a single sample point. This method is generally used for uncalculated performance counter types.

static
Calculate(CounterSample, CounterSample) : float

Calculates the performance data of the counter, using two sample points. This method is generally used for calculated performance counter types, such as averages.

Equals(CounterSample) : bool

Indicates whether the specified System.Diagnostics.CounterSample structure is equal to the current System.Diagnostics.CounterSample structure.

override
Equals(object) : bool

Indicates whether the specified structure is a System.Diagnostics.CounterSample structure and is identical to the current System.Diagnostics.CounterSample structure.

override
GetHashCode() : int

Gets a hash code for the current counter sample.