Szerkesztés

Megosztás a következőn keresztül:


OracleTimeSpan Constructors

Definition

Initializes a new OracleTimeSpan structure.

Overloads

OracleTimeSpan(OracleTimeSpan)

Initializes a new OracleTimeSpan structure from an existing one.

OracleTimeSpan(Int64)

Initializes a new OracleTimeSpan structure to the specified number of ticks.

OracleTimeSpan(TimeSpan)

Initializes a new instance of the OracleTimeSpan structure with the specified TimeSpan.

OracleTimeSpan(Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of hours, minutes, and seconds.

OracleTimeSpan(Int32, Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of days, hours, minutes, and seconds.

OracleTimeSpan(Int32, Int32, Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of days, hours, minutes, seconds, and milliseconds.

OracleTimeSpan(OracleTimeSpan)

Initializes a new OracleTimeSpan structure from an existing one.

public:
 OracleTimeSpan(System::Data::OracleClient::OracleTimeSpan from);
public OracleTimeSpan (System.Data.OracleClient.OracleTimeSpan from);
new System.Data.OracleClient.OracleTimeSpan : System.Data.OracleClient.OracleTimeSpan -> System.Data.OracleClient.OracleTimeSpan
Public Sub New (from As OracleTimeSpan)

Parameters

from
OracleTimeSpan

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

Applies to

OracleTimeSpan(Int64)

Initializes a new OracleTimeSpan structure to the specified number of ticks.

public:
 OracleTimeSpan(long ticks);
public OracleTimeSpan (long ticks);
new System.Data.OracleClient.OracleTimeSpan : int64 -> System.Data.OracleClient.OracleTimeSpan
Public Sub New (ticks As Long)

Parameters

ticks
Int64

A time period expressed in 100-nanosecond units.

Applies to

OracleTimeSpan(TimeSpan)

Initializes a new instance of the OracleTimeSpan structure with the specified TimeSpan.

public:
 OracleTimeSpan(TimeSpan ts);
public OracleTimeSpan (TimeSpan ts);
new System.Data.OracleClient.OracleTimeSpan : TimeSpan -> System.Data.OracleClient.OracleTimeSpan
Public Sub New (ts As TimeSpan)

Parameters

ts
TimeSpan

The specified TimeSpan.

Applies to

OracleTimeSpan(Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of hours, minutes, and seconds.

public:
 OracleTimeSpan(int hours, int minutes, int seconds);
public OracleTimeSpan (int hours, int minutes, int seconds);
new System.Data.OracleClient.OracleTimeSpan : int * int * int -> System.Data.OracleClient.OracleTimeSpan
Public Sub New (hours As Integer, minutes As Integer, seconds As Integer)

Parameters

hours
Int32

Number of hours.

minutes
Int32

Number of minutes.

seconds
Int32

Number of seconds.

Exceptions

The parameters specify an OracleTimeSpan value less than OracleTimeSpan.MinValue or greater than OracleTimeSpan.MaxValue.

Applies to

OracleTimeSpan(Int32, Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of days, hours, minutes, and seconds.

public:
 OracleTimeSpan(int days, int hours, int minutes, int seconds);
public OracleTimeSpan (int days, int hours, int minutes, int seconds);
new System.Data.OracleClient.OracleTimeSpan : int * int * int * int -> System.Data.OracleClient.OracleTimeSpan
Public Sub New (days As Integer, hours As Integer, minutes As Integer, seconds As Integer)

Parameters

days
Int32

Number of days.

hours
Int32

Number of hours.

minutes
Int32

Number of minutes.

seconds
Int32

Number of seconds.

Exceptions

The parameters specify an OracleTimeSpan value less than OracleTimeSpan.MinValue or greater than OracleTimeSpan.MaxValue.

Applies to

OracleTimeSpan(Int32, Int32, Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of days, hours, minutes, seconds, and milliseconds.

public:
 OracleTimeSpan(int days, int hours, int minutes, int seconds, int milliseconds);
public OracleTimeSpan (int days, int hours, int minutes, int seconds, int milliseconds);
new System.Data.OracleClient.OracleTimeSpan : int * int * int * int * int -> System.Data.OracleClient.OracleTimeSpan
Public Sub New (days As Integer, hours As Integer, minutes As Integer, seconds As Integer, milliseconds As Integer)

Parameters

days
Int32

Number of days.

hours
Int32

Number of hours.

minutes
Int32

Number of minutes.

seconds
Int32

Number of seconds.

milliseconds
Int32

Number of milliseconds.

Exceptions

The parameters specify an OracleTimeSpan value less than OracleTimeSpan.MinValue or greater than OracleTimeSpan.MaxValue.

Applies to