System.Diagnostics.CounterSample Members

The members of System.Diagnostics.CounterSample are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Initializes a new instance of the System.Diagnostics.CounterSample structure and sets the CounterSample.CounterTimeStamp property to 0 (zero).

Initializes a new instance of the System.Diagnostics.CounterSample structure and sets the CounterSample.CounterTimeStamp property to the value that is passed in.

Public Fields

static
EmptyCounterSample.

Defines an empty, uninitialized performance counter sample of type NumberOfItems32.

Public Properties

[read-only]
BaseValuelong.

Gets an optional, base raw value for the counter.

[read-only]
CounterFrequencylong.

Gets the raw counter frequency.

[read-only]
CounterTimeStamplong.

Gets the counter's time stamp.

[read-only]
CounterTypePerformanceCounterType.

Gets the performance counter type.

[read-only]
RawValuelong.

Gets the raw value of the counter.

[read-only]
SystemFrequencylong.

Gets the raw system frequency.

[read-only]
TimeStamplong.

Gets the raw time stamp.

[read-only]
TimeStamp100nSeclong.

Gets the raw, high-fidelity time stamp.

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.

Public Operators

static
Equality(CounterSample, CounterSample)

Returns a value that indicates whether two System.Diagnostics.CounterSample structures are equal.

static
Inequality(CounterSample, CounterSample)

Returns a value that indicates whether two System.Diagnostics.CounterSample structures are not equal.