YearMonthDuration.Subtraction OperatorYearMonthDuration.Subtraction OperatorYearMonthDuration::Subtraction Operator

Syntax

Public Shared Operator -( _
    duration1 As YearMonthDuration, _
    duration2 As YearMonthDuration _
) As YearMonthDuration
public static YearMonthDuration operator -(
    YearMonthDuration duration1,
    YearMonthDuration duration2
)
public:
static YearMonthDuration operator -(
    YearMonthDuration duration1, 
    YearMonthDuration duration2
)
 

Exceptions

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