OracleMonthSpan Constructors

Definition

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.

C#
public OracleMonthSpan(System.Data.OracleClient.OracleMonthSpan from);

Parameters

from
OracleMonthSpan

An existing OracleMonthSpan structure from which to create the new structure.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OracleMonthSpan(Int32)

Initializes a new OracleMonthSpan structure to the specified number of months.

C#
public OracleMonthSpan(int months);

Parameters

months
Int32

Number of months.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OracleMonthSpan(Int32, Int32)

Initializes a new OracleMonthSpan structure to a specified number years and months.

C#
public OracleMonthSpan(int years, int months);

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1