YearMonthDuration.Divide Method (YearMonthDuration, double)YearMonthDuration.Divide Method (YearMonthDuration, Double)YearMonthDuration::Divide Method (YearMonthDuration, double)
Divides the specified YearMonthDurationYearMonthDurationYearMonthDuration value by a doubleDoubledouble value.
Syntax
Public Shared Function Divide( _ duration As YearMonthDuration, _ value As Double _ ) As YearMonthDuration
public static YearMonthDuration Divide( YearMonthDuration duration, double value )
public: static YearMonthDuration Divide( YearMonthDuration duration, double value )
Parameters
Return Value
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
The YearMonthDurationYearMonthDurationYearMonthDuration result of dividing duration by value.
Exceptions
Exception | Condition |
DivideByZeroExceptionDivideByZeroExceptionDivideByZeroException | value is zero. |
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.