YearMonthDuration.Multiply Operator (YearMonthDuration, double)YearMonthDuration.Multiply Operator (YearMonthDuration, Double)YearMonthDuration::Multiply Operator (YearMonthDuration, double)

Multiplies the specified YearMonthDurationYearMonthDurationYearMonthDuration value by a doubleDoubledouble value.

Syntax

Public Shared Operator *( _
    duration As YearMonthDuration, _
    value As Double _
) As YearMonthDuration
public static YearMonthDuration operator *(
    YearMonthDuration duration,
    double value
)
public:
static YearMonthDuration operator *(
    YearMonthDuration duration, 
    double value
)
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowException The return value would be less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue.

Remarks

The result is rounded to the nearest month, as per the fn:round function.