dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleIntervalYM Structure / Add Method / Add(Int32,Int32,Boolean,Int32,Int32,Boolean) Method
Number of years in the first interval.
Number of months in the first interval.
true if the first time interval is a positive value; otherwise, false.
Number of years in the second interval.
Number of months in the second interval.
true if the second time interval is a positive value; otherwise, false.

In This Topic
    Add(Int32,Int32,Boolean,Int32,Int32,Boolean) Method
    In This Topic
    Adds two time intervals represented by their constituent parts.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Add( _
       ByVal year1 As Integer, _
       ByVal month1 As Integer, _
       ByVal isPositive1 As Boolean, _
       ByVal year2 As Integer, _
       ByVal month2 As Integer, _
       ByVal isPositive2 As Boolean _
    ) As OracleIntervalYM
    public static OracleIntervalYM Add( 
       int year1,
       int month1,
       bool isPositive1,
       int year2,
       int month2,
       bool isPositive2
    )

    Parameters

    year1
    Number of years in the first interval.
    month1
    Number of months in the first interval.
    isPositive1
    true if the first time interval is a positive value; otherwise, false.
    year2
    Number of years in the second interval.
    month2
    Number of months in the second interval.
    isPositive2
    true if the second time interval is a positive value; otherwise, false.

    Return Value

    An OracleIntervalYM structure.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also