DateTimeWithZone.Add Method (DateTimeWithZone, YearMonthDuration)DateTimeWithZone.Add Method (DateTimeWithZone, YearMonthDuration)DateTimeWithZone::Add Method (DateTimeWithZone, YearMonthDuration)

Syntax

Public Shared Function Add( _
    dateTime As DateTimeWithZone, _
    duration As YearMonthDuration _
) As DateTimeWithZone
public static DateTimeWithZone Add(
    DateTimeWithZone dateTime,
    YearMonthDuration duration
)
public:
static DateTimeWithZone Add(
    DateTimeWithZone dateTime, 
    YearMonthDuration duration
)
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.