YearMonthDuration.Multiply Operator (double, YearMonthDuration)YearMonthDuration.Multiply Operator (Double, YearMonthDuration)YearMonthDuration::Multiply Operator (double, YearMonthDuration)
Multiplies the specified YearMonthDurationYearMonthDurationYearMonthDuration value by a doubleDoubledouble value.
Syntax
Public Shared Operator *( _ value As Double, _ duration As YearMonthDuration _ ) As YearMonthDuration
public static YearMonthDuration operator *( double value, YearMonthDuration duration )
public: static YearMonthDuration operator *( double value, YearMonthDuration duration )
Parameters
- value
- duration
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
The YearMonthDurationYearMonthDurationYearMonthDuration value to multiply.
Return Value
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
The YearMonthDurationYearMonthDurationYearMonthDuration result of multiplying duration by value.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | The return value would be less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue. |
Remarks
The result is rounded to the nearest month, as per thefn:round
function.