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

Multiplies the specified YearMonthDurationYearMonthDurationYearMonthDuration value by a doubleDoubledouble value.

Syntax

Public Shared Function Multiply( _
    value As Double, _
    duration As YearMonthDuration _
) As YearMonthDuration
public static YearMonthDuration Multiply(
    double value,
    YearMonthDuration duration
)
public:
static YearMonthDuration Multiply(
    double value, 
    YearMonthDuration duration
)
 

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.