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



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

Parameters

years
Number of years to add.
interval
A TdIntervalYear.

Return Value

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

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

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

Requirements
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalYear Structure
TdIntervalYear Members
Overload List