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



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

Parameters

months
Number of months to add.
interval
A TdIntervalMonth.

Return Value

A new TdIntervalMonth as the result of adding an Int32 to TdIntervalMonth.
Exceptions
ExceptionDescription
The resultant operation returns a value greater than the TdIntervalMonth.MaxValue or less than the TdIntervalMonth.MinValue.
Remarks

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

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

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalMonth Structure
TdIntervalMonth Members
Overload List