YearMonthDuration.Subtract MethodYearMonthDuration.Subtract MethodYearMonthDuration::Subtract Method

Syntax

Public Shared Function Subtract( _
    duration1 As YearMonthDuration, _
    duration2 As YearMonthDuration _
) As YearMonthDuration
public static YearMonthDuration Subtract(
    YearMonthDuration duration1,
    YearMonthDuration duration2
)
public:
static YearMonthDuration Subtract(
    YearMonthDuration duration1, 
    YearMonthDuration duration2
)
 

Exceptions

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