OracleDateTime Constructors
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 instance of the OracleDateTime structure.
OracleDateTime(OracleDateTime) |
Initializes a new instance of the OracleDateTime structure from an existing OracleDateTime object. |
OracleDateTime(DateTime) |
Initializes a new instance of the OracleDateTime structure with the specified DateTime. |
OracleDateTime(Int64) |
Initializes a new instance of the OracleDateTime structure using the supplied number of ticks. |
OracleDateTime(Int32, Int32, Int32) |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, and day of the new structure. |
OracleDateTime(Int32, Int32, Int32, Calendar) |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, and calendar of the new structure. |
OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32) |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second of the new structure. |
OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Calendar) |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second for the specified calendar of the new structure. |
OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond of the new structure. |
OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Calendar) |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond for the specified calendar of the new structure. |
Initializes a new instance of the OracleDateTime structure from an existing OracleDateTime object.
public:
OracleDateTime(System::Data::OracleClient::OracleDateTime from);
public OracleDateTime (System.Data.OracleClient.OracleDateTime from);
new System.Data.OracleClient.OracleDateTime : System.Data.OracleClient.OracleDateTime -> System.Data.OracleClient.OracleDateTime
Public Sub New (from As OracleDateTime)
Parameters
- from
- OracleDateTime
An existing OracleDateTime object from which to copy.
Applies to
.NET Framework 4.8.1 וגירסאות אחרות
מוצר | גירסאות |
---|---|
.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 |
Initializes a new instance of the OracleDateTime structure with the specified DateTime.
public:
OracleDateTime(DateTime dt);
public OracleDateTime (DateTime dt);
new System.Data.OracleClient.OracleDateTime : DateTime -> System.Data.OracleClient.OracleDateTime
Public Sub New (dt As DateTime)
Parameters
Applies to
.NET Framework 4.8.1 וגירסאות אחרות
מוצר | גירסאות |
---|---|
.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 |
Initializes a new instance of the OracleDateTime structure using the supplied number of ticks.
public:
OracleDateTime(long ticks);
public OracleDateTime (long ticks);
new System.Data.OracleClient.OracleDateTime : int64 -> System.Data.OracleClient.OracleDateTime
Public Sub New (ticks As Long)
Parameters
- ticks
- Int64
A time period expressed in 100-nanosecond units.
Applies to
.NET Framework 4.8.1 וגירסאות אחרות
מוצר | גירסאות |
---|---|
.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 |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, and day of the new structure.
public:
OracleDateTime(int year, int month, int day);
public OracleDateTime (int year, int month, int day);
new System.Data.OracleClient.OracleDateTime : int * int * int -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer)
Parameters
- year
- Int32
An integer value representing the year of the new OracleDateTime structure.
- month
- Int32
An integer value representing the month of the new OracleDateTime structure.
- day
- Int32
An integer value representing the day of the month of the new OracleDateTime structure.
Applies to
.NET Framework 4.8.1 וגירסאות אחרות
מוצר | גירסאות |
---|---|
.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 |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, and calendar of the new structure.
public:
OracleDateTime(int year, int month, int day, System::Globalization::Calendar ^ calendar);
public OracleDateTime (int year, int month, int day, System.Globalization.Calendar calendar);
new System.Data.OracleClient.OracleDateTime : int * int * int * System.Globalization.Calendar -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, calendar As Calendar)
Parameters
- year
- Int32
An integer value representing the year of the new OracleDateTime structure.
- month
- Int32
An integer value representing the month of the new OracleDateTime structure.
- day
- Int32
An integer value representing the day of the month of the new OracleDateTime structure.
- calendar
- Calendar
The Calendar for this instance of OracleDateTime.
Applies to
.NET Framework 4.8.1 וגירסאות אחרות
מוצר | גירסאות |
---|---|
.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 |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second of the new structure.
public:
OracleDateTime(int year, int month, int day, int hour, int minute, int second);
public OracleDateTime (int year, int month, int day, int hour, int minute, int second);
new System.Data.OracleClient.OracleDateTime : int * int * int * int * int * int -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer)
Parameters
- year
- Int32
An integer value representing the year of the new OracleDateTime structure.
- month
- Int32
An integer value representing the month of the new OracleDateTime structure.
- day
- Int32
An integer value representing the day of the month of the new OracleDateTime structure.
- hour
- Int32
An integer value representing the hour of the new OracleDateTime structure.
- minute
- Int32
An integer value representing the minute of the new OracleDateTime structure.
- second
- Int32
An integer value representing the second of the new OracleDateTime structure.
Applies to
.NET Framework 4.8.1 וגירסאות אחרות
מוצר | גירסאות |
---|---|
.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 |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second for the specified calendar of the new structure.
public:
OracleDateTime(int year, int month, int day, int hour, int minute, int second, System::Globalization::Calendar ^ calendar);
public OracleDateTime (int year, int month, int day, int hour, int minute, int second, System.Globalization.Calendar calendar);
new System.Data.OracleClient.OracleDateTime : int * int * int * int * int * int * System.Globalization.Calendar -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, calendar As Calendar)
Parameters
- year
- Int32
An integer value representing the year of the new OracleDateTime structure.
- month
- Int32
An integer value representing the month of the new OracleDateTime structure.
- day
- Int32
An integer value representing the day of the month of the new OracleDateTime structure.
- hour
- Int32
An integer value representing the hour of the new OracleDateTime structure.
- minute
- Int32
An integer value representing the minute of the new OracleDateTime structure.
- second
- Int32
An integer value representing the second of the new OracleDateTime structure.
- calendar
- Calendar
The Calendar for this instance of OracleDateTime.
Applies to
.NET Framework 4.8.1 וגירסאות אחרות
מוצר | גירסאות |
---|---|
.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 |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond of the new structure.
public:
OracleDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond);
public OracleDateTime (int year, int month, int day, int hour, int minute, int second, int millisecond);
new System.Data.OracleClient.OracleDateTime : int * int * int * int * int * int * int -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, millisecond As Integer)
Parameters
- year
- Int32
An integer value representing the year of the new OracleDateTime structure.
- month
- Int32
An integer value representing the month of the new OracleDateTime structure.
- day
- Int32
An integer value representing the day of the month of the new OracleDateTime structure.
- hour
- Int32
An integer value representing the hour of the new OracleDateTime structure.
- minute
- Int32
An integer value representing the minute of the new OracleDateTime structure.
- second
- Int32
An integer value representing the second of the new OracleDateTime structure.
- millisecond
- Int32
An integer value representing the millisecond of the new OracleDateTime structure.
Applies to
.NET Framework 4.8.1 וגירסאות אחרות
מוצר | גירסאות |
---|---|
.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 |
Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond for the specified calendar of the new structure.
public:
OracleDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, System::Globalization::Calendar ^ calendar);
public OracleDateTime (int year, int month, int day, int hour, int minute, int second, int millisecond, System.Globalization.Calendar calendar);
new System.Data.OracleClient.OracleDateTime : int * int * int * int * int * int * int * System.Globalization.Calendar -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, millisecond As Integer, calendar As Calendar)
Parameters
- year
- Int32
An integer value representing the year of the new OracleDateTime structure.
- month
- Int32
An integer value representing the month of the new OracleDateTime structure.
- day
- Int32
An integer value representing the day of the month of the new OracleDateTime structure.
- hour
- Int32
An integer value representing the hour of the new OracleDateTime structure.
- minute
- Int32
An integer value representing the minute of the new OracleDateTime structure.
- second
- Int32
An integer value representing the second of the new OracleDateTime structure.
- millisecond
- Int32
An integer value representing the millisecond of the new OracleDateTime structure.
- calendar
- Calendar
The Calendar for this instance of OracleDateTime.
Applies to
.NET Framework 4.8.1 וגירסאות אחרות
מוצר | גירסאות |
---|---|
.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 |
משוב של .NET
.NET הוא פרויקט קוד פתוח. בחר קישור כדי לספק משוב: