mscorlib(4.0.0.0) API with additions
System.Diagnostics.InstanceData Class Reference

Holds instance data associated with a performance counter sample. More...

Collaboration diagram for System.Diagnostics.InstanceData:
[legend]

Public Member Functions

 InstanceData (string instanceName, CounterSample sample)
 Initializes a new instance of the InstanceData class, using the specified sample and performance counter instance. More...
 

Public Attributes

string InstanceName => instanceName
 Gets the instance name associated with this instance data. More...
 
CounterSample Sample => sample
 Gets the performance counter sample that generated this data. More...
 
long RawValue => sample.RawValue
 Gets the raw data value associated with the performance counter sample. More...
 

Detailed Description

Holds instance data associated with a performance counter sample.

Definition at line 4 of file InstanceData.cs.

Constructor & Destructor Documentation

◆ InstanceData()

System.Diagnostics.InstanceData.InstanceData ( string  instanceName,
CounterSample  sample 
)

Initializes a new instance of the InstanceData class, using the specified sample and performance counter instance.

Parameters
instanceNameThe name of an instance associated with the performance counter.
sampleA T:System.Diagnostics.CounterSample taken from the instance specified by the instanceName parameter.

Definition at line 25 of file InstanceData.cs.

Member Data Documentation

◆ InstanceName

string System.Diagnostics.InstanceData.InstanceName => instanceName

Gets the instance name associated with this instance data.

Returns
The name of an instance associated with the performance counter.

Definition at line 12 of file InstanceData.cs.

◆ RawValue

long System.Diagnostics.InstanceData.RawValue => sample.RawValue

Gets the raw data value associated with the performance counter sample.

Returns
The raw value read by the performance counter sample associated with the P:System.Diagnostics.InstanceData.Sample property.

Definition at line 20 of file InstanceData.cs.

◆ Sample

CounterSample System.Diagnostics.InstanceData.Sample => sample

Gets the performance counter sample that generated this data.

Returns
A T:System.Diagnostics.CounterSample taken from the instance specified by the P:System.Diagnostics.InstanceData.InstanceName property.

Definition at line 16 of file InstanceData.cs.


The documentation for this class was generated from the following file: