C # in a Nutshell, Second Edition

InstanceData

System.Diagnostics (system.dll) class

This type represents the instance data for a performance counter sample. InstanceName returns the InstanceData 's name . RawValue returns the sample's raw data. Sample returns the CounterSample responsible for the data.

public class InstanceData { // Public Constructors public InstanceData (string instanceName , CounterSample sample ); // Public Instance Properties public string InstanceName {get; } public long RawValue {get; } public CounterSample Sample {get; } }

Returned By

InstanceDataCollection.this

Passed To

InstanceDataCollection.CopyTo( )

Категории