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

    Parameters

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