Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / EnergyProperty Class / EnergyProperty Constructor / EnergyProperty Constructor(String)
The value of energy as a string.
Example
In This Topic
    EnergyProperty Constructor(String)
    In This Topic
    Creates a new instance of the EnergyProperty from the specified string value.
    Syntax
    public EnergyProperty( 
       string value
    )

    Parameters

    value
    The value of energy as a string.
    Exceptions
    ExceptionDescription
    Thrown when the specified unit is not valid for this property.
    Example
    The following example shows how to create a new EnergyProperty.
    EnergyProperty energyProperty = new EnergyProperty("42 J");
    See Also