Microsoft.IoT.DeviceCore.Sensors.AnalogSensorReading.AnalogSensorReading C# (CSharp) Method

AnalogSensorReading() public method

Initializes a new AnalogSensorReading instance.
public AnalogSensorReading ( int val, double ratio, DateTimeOffset timestamp ) : System
val int /// The value of the reading. ///
ratio double /// The ratio of the reading as a percentage of the range. ///
timestamp DateTimeOffset /// The time when the sensor reported the reading. ///
return System
        public AnalogSensorReading(int val, double ratio, DateTimeOffset timestamp)
        {
            this.Value = val;
            this.Ratio = ratio;
            this.Timestamp = timestamp;
        }

Same methods

AnalogSensorReading::AnalogSensorReading ( int val, double ratio ) : System
AnalogSensorReading