YearMonthDuration.Division Operator (YearMonthDuration, YearMonthDuration)YearMonthDuration.Division Operator (YearMonthDuration, YearMonthDuration)YearMonthDuration::Division Operator (YearMonthDuration, YearMonthDuration)

Syntax

Public Shared Operator /( _
    duration1 As YearMonthDuration, _
    duration2 As YearMonthDuration _
) As Decimal
public static decimal operator /(
    YearMonthDuration duration1,
    YearMonthDuration duration2
)
public:
static decimal operator /(
    YearMonthDuration duration1, 
    YearMonthDuration duration2
)
 

Return Value

Type: System.DecimalSystem.DecimalSystem::Decimal

The decimalDecimaldecimal result of dividing duration1 by duration2.

Exceptions

ExceptionCondition
DivideByZeroExceptionDivideByZeroExceptionDivideByZeroExceptionduration2 is zero.