Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / EnergyProperty Class / EnergyProperty Constructor / EnergyProperty Constructor(Double,Unit)
The value of energy.
The unit of energy value.
Example
In This Topic
    EnergyProperty Constructor(Double,Unit)
    In This Topic
    Creates a new instance of the EnergyProperty with the specified value and unit.
    Syntax
    public EnergyProperty( 
       double value,
       Unit unit
    )

    Parameters

    value
    The value of energy.
    unit
    The unit of energy value.
    Exceptions
    ExceptionDescription
    Thrown when the unit is not valid for this property.
    Example
    The following example shows how to create a new EnergyProperty.
    EnergyProperty energyProperty = new EnergyProperty(42.0, Unit.Joule);
    See Also