14.5.1 OracleIntervalDS Members

OracleIntervalDS members are listed in the following tables:

OracleIntervalDS Constructors

OracleIntervalDS constructors are listed in Table 14-61

Table 14-61 OracleIntervalDS Constructors

Constructor Description

OracleIntervalDS Constructors

Instantiates a new instance of OracleIntervalDS structure (Overloaded)

OracleIntervalDS Static Fields

The OracleIntervalDS static fields are listed in Table 14-62.

Table 14-62 OracleIntervalDS Static Fields

Field Description

MaxValue

Represents the maximum valid time interval for an OracleIntervalDS structure

MinValue

Represents the minimum valid time interval for an OracleIntervalDS structure

Null

Represents a null value that can be assigned to an OracleIntervalDS instance

Zero

Represents a zero value for an OracleIntervalDS structure

OracleIntervalDS Static Methods

The OracleIntervalDS static methods are listed in Table 14-63.

Table 14-63 OracleIntervalDS Static Methods

Methods Description

Equals

Determines whether or not two OracleIntervalDS values are equal (Overloaded)

GreaterThan

Determines whether or not one OracleIntervalDS value is greater than another

GreaterThanOrEqual

Determines whether or not one OracleIntervalDS value is greater than or equal to another

LessThan

Determines whether or not one OracleIntervalDS value is less than another

LessThanOrEqual

Determines whether or not one OracleIntervalDS value is less than or equal to another

NotEquals

Determines whether or not two OracleIntervalDS values are not equal

Parse

Returns an OracleIntervalDS structure and sets its value for time interval using a string

SetPrecision

Returns a new instance of an OracleIntervalDS with the specified day precision and fractional second precision

OracleIntervalDS Static Operators

The OracleIntervalDS static operators are listed in Table 14-64.

Table 14-64 OracleIntervalDS Static Operators

Operator Description

operator +

Adds two OracleIntervalDS values

operator ==

Determines whether or not two OracleIntervalDS values are equal

operator >

Determines whether or not one OracleIntervalDS value is greater than another

operator >=

Determines whether or not one OracleIntervalDS value is greater than or equal to another

operator !=

Determines whether or not two OracleIntervalDS values are not equal

operator <

Determines whether or not one OracleIntervalDS value is less than another

operator <=

Determines whether or not one OracleIntervalDS value is less than or equal to another

operator -

Subtracts one OracleIntervalDS value from another

operator -

Negates an OracleIntervalDS structure

operator *

Multiplies an OracleIntervalDS value by a number

operator /

Divides an OracleIntervalDS value by a number

OracleIntervalDS Type Conversions

The OracleIntervalDS type conversions are listed in Table 14-65.

Table 14-65 OracleIntervalDS Type Conversions

Operator Description

explicit operator TimeSpan

Converts an OracleIntervalDS structure to a TimeSpan structure

explicit operator OracleIntervalDS

Converts a string to an OracleIntervalDS structure

implicit operator OracleIntervalDS

Converts a TimeSpan structure to an OracleIntervalDS structure

OracleIntervalDS Properties

The OracleIntervalDS properties are listed in Table 14-66.

Table 14-66 OracleIntervalDS Properties

Properties Description

BinData

Returns an array of bytes that represents the Oracle INTERVAL DAY TO SECOND in Oracle internal format

Days

Gets the days component of an OracleIntervalDS

Hours

Gets the hours component of an OracleIntervalDS

IsNull

Indicates whether or not the current instance has a null value

Milliseconds

Gets the milliseconds component of an OracleIntervalDS

Minutes

Gets the minutes component of an OracleIntervalDS

Nanoseconds

Gets the nanoseconds component of an OracleIntervalDS

Seconds

Gets the seconds component of an OracleIntervalDS

TotalDays

Returns the total number, in days, that represent the time period in the OracleIntervalDS structure

Value

Specifies the time interval that is stored in the OracleIntervalDS structure

OracleIntervalDS Methods

The OracleIntervalDS methods are listed in Table 14-67.

Table 14-67 OracleIntervalDS Methods

Methods Description

CompareTo

Compares the current OracleIntervalDS instance to an object, and returns an integer that represents their relative values

Equals

Determines whether or not the specified object has the same time interval as the current instance (Overloaded)

GetHashCode

Returns a hash code for the OracleIntervalDS instance

GetType

Inherited from System.Object

ToString

Converts the current OracleIntervalDS structure to a string