Send feedback on this topic.
Teradata.Client.Provider
Add(TdIntervalMonth,Int32) Method



Teradata.Client.Provider Namespace > TdIntervalMonth Structure > Add Method : Add(TdIntervalMonth,Int32) Method
A TdIntervalMonth.
Number of months to add.
Calculates the sum of a TdIntervalMonth and the specified number of months.
Syntax
'Declaration
 
Public Overloads Shared Function Add( _
   ByVal interval As TdIntervalMonth, _
   ByVal months As Integer _
) As TdIntervalMonth
'Usage
 
Dim interval As TdIntervalMonth
Dim months As Integer
Dim value As TdIntervalMonth
 
value = TdIntervalMonth.Add(interval, months)
public static TdIntervalMonth Add( 
   TdIntervalMonth interval,
   int months
)
public:
static TdIntervalMonth Add( 
   TdIntervalMonth interval,
   int months
) 

Parameters

interval
A TdIntervalMonth.
months
Number of months to add.

Return Value

A TdIntervalMonth containing the sum.
Exceptions
ExceptionDescription
The resultant operation returns a value greater than the TdIntervalMonth.MaxValue or less than the TdIntervalMonth.MinValue.
Remarks

If parameter interval is Null a TdIntervalMonth.Null will be returned.

The returned TdIntervalMonth will contain a precision set to the TdIntervalMonth.MaxPrecision.

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdIntervalMonth Structure
TdIntervalMonth Members
Overload List