OracleMonthSpan Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new OracleMonthSpan structure.
Overloads
OracleMonthSpan(OracleMonthSpan) |
Initializes a new OracleMonthSpan structure from an existing one. |
OracleMonthSpan(Int32) |
Initializes a new OracleMonthSpan structure to the specified number of months. |
OracleMonthSpan(Int32, Int32) |
Initializes a new OracleMonthSpan structure to a specified number years and months. |
OracleMonthSpan(OracleMonthSpan)
Initializes a new OracleMonthSpan structure from an existing one.
public:
OracleMonthSpan(System::Data::OracleClient::OracleMonthSpan from);
public OracleMonthSpan (System.Data.OracleClient.OracleMonthSpan from);
new System.Data.OracleClient.OracleMonthSpan : System.Data.OracleClient.OracleMonthSpan -> System.Data.OracleClient.OracleMonthSpan
Public Sub New (from As OracleMonthSpan)
Parameters
- from
- OracleMonthSpan
An existing OracleMonthSpan structure from which to create the new structure.
Applies to
OracleMonthSpan(Int32)
Initializes a new OracleMonthSpan structure to the specified number of months.
public:
OracleMonthSpan(int months);
public OracleMonthSpan (int months);
new System.Data.OracleClient.OracleMonthSpan : int -> System.Data.OracleClient.OracleMonthSpan
Public Sub New (months As Integer)
Parameters
- months
- Int32
Number of months.
Applies to
OracleMonthSpan(Int32, Int32)
Initializes a new OracleMonthSpan structure to a specified number years and months.
public:
OracleMonthSpan(int years, int months);
public OracleMonthSpan (int years, int months);
new System.Data.OracleClient.OracleMonthSpan : int * int -> System.Data.OracleClient.OracleMonthSpan
Public Sub New (years As Integer, months As Integer)
Parameters
- years
- Int32
Number of years.
- months
- Int32
Number of months.
Exceptions
The parameters specify an OracleMonthSpan value less than OracleMonthSpan.MinValue or greater than OracleMonthSpan.MaxValue.