mscorlib(4.0.0.0) API with additions
InstanceData.cs
1 namespace System.Diagnostics
2 {
4  public class InstanceData
5  {
6  private string instanceName;
7 
8  private CounterSample sample;
9 
12  public string InstanceName => instanceName;
13 
16  public CounterSample Sample => sample;
17 
20  public long RawValue => sample.RawValue;
21 
25  public InstanceData(string instanceName, CounterSample sample)
26  {
27  this.instanceName = instanceName;
28  this.sample = sample;
29  }
30  }
31 }
long RawValue
Gets the raw value of the counter.
InstanceData(string instanceName, CounterSample sample)
Initializes a new instance of the InstanceData class, using the specified sample and performance coun...
Definition: InstanceData.cs:25
CounterSample Sample
Gets the performance counter sample that generated this data.
Definition: InstanceData.cs:16
Holds instance data associated with a performance counter sample.
Definition: InstanceData.cs:4
Defines a structure that holds the raw data for a performance counter.
Definition: CounterSample.cs:4
long RawValue
Gets the raw data value associated with the performance counter sample.
Definition: InstanceData.cs:20
string InstanceName
Gets the instance name associated with this instance data.
Definition: InstanceData.cs:12