Skip Headers

Oracle Data Provider for .NET Developer's Guide
Release 9.2.0.2

Part Number A96160-01
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to beginning of chapter Go to next page

Oracle.DataAccess.Types Namespace (ODP.NET Types), 5 of 17


OracleIntervalDS Structure

The OracleIntervalDS structure represents the Oracle INTERVAL DAY TO SECOND datatype to be stored in or retrieved from a database. Each OraIntervalDS stores a period of time in term of days, hours, minutes, seconds, and fractional seconds.

Class Inheritance

Object

  ValueType

    OracleIntervalDS

Declaration
// C#
public struct OracleIntervalDS : IComparable
Thread Safety

All public static methods are thread-safe, although instance methods do not guarantee thread safety.

Example
// C#
//  Illustrates usage of OracleIntervalDS

OracleIntervalDS idsMax = OracleIntervalDS.MaxValue;
double maxDays = idsMax.TotalDays;
maxDays -= 1;
OracleIntervalDS idsMax_1 = new OracleIntervalDS(maxDays);

// Calculate the difference. It should be 1 +/- epsilon days
// where epsilon for OracleIntervalDS = 0.000000001 seconds.

OracleIntervalDS idsDiff = idsMax - idsMax_1;

// If the difference isnt exactly 1 day, display the difference
if (idsDiff.TotalDays != 1)
   Console.WriteLine(idsDiff.ToString());

Requirements

Namespace: Oracle.DataAccess.Types

Assembly: Oracle.DataAccesss.dll

See Also:

OracleIntervalDS Members

OracleIntervalDS members are listed in the following tables:

OracleIntervalDS Constructors

OracleIntervalDS constructors are listed in Table 5-48

Table 5-48 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 5-49.

Table 5-49 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 5-50.

Table 5-50 OracleIntervalDS Static Methods  
Methods Description

Equals

Determines whether two OracleIntervalDS values are equal (Overloaded)

GreaterThan

Determines whether one OracleIntervalDS value is greater than another

GreaterThanOrEqual

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

LessThan

Determines whether one OracleIntervalDS value is less than another

LessThanOrEqual

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

NotEquals

Determines whether 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 5-51.

Table 5-51 OracleIntervalDS Static Operators  
Operator Description

operator +

Adds two OracleIntervalDS values

operator ==

Determines whether two OracleIntervalDS values are equal

operator >

Determines whether one OracleIntervalDS value is greater than another

operator >=

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

operator !=

Determines whether two OracleIntervalDS values are not equal

operator <

Determines whether one OracleIntervalDS value is less than another

operator <=

Determines whether 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 5-52.

Table 5-52 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 5-53.

Table 5-53 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 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 5-54.

Table 5-54 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 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 Object

ToString

Converts the current OracleIntervalDS structure to a string

See Also:

OracleIntervalDS Constructors

OracleIntervalDS constructors create a new instance of the OracleIntervalDS structure.

Overload List:

OracleIntervalDS(TimeSpan)

This constructor creates a new instance of the OracleIntervalDS structure and sets its value using a TimeSpan structure.

Declaration
// C#
public OracleIntervalDS(TimeSpan ts);  
Parameters

OracleIntervalDS(string)

This constructor creates a new instance of the OracleIntervalDS structure and sets its value using a string that indicates a period of time.

Declaration
// C#
public OracleIntervalDS(string intervalStr);  
Parameters
Exceptions

ArgumentException - The intervalStr parameter is not in the valid format or has an invalid value.

ArgumentNullException - The intervalStr parameter is null.

Remarks

The value specified in the supplied intervalStr must be in Day HH:MI:SSxFF format.

Example

"1 2:3:4.99" means 1 day, 2 hours, 3 minutes, 4 seconds, and 990 milliseconds or 1 day, 2 hours, 3 minutes, 4 seconds, and 990000000 nanoseconds.

See Also:

OracleIntervalDS(double)

This constructor creates a new instance of the OracleIntervalDS structure and sets its value using the total number of days.

Declaration
// C#
public OracleIntervalDS(double totalDays);
Parameters
Exceptions

ArgumentOutOfRangeException - The argument value for one or more of the parameters is out of the specified range.

ArgumentException - The argument values of the parameters cannot be used to construct a valid OracleIntervalDS.

See Also:

OracleIntervalDS(int, int, int, int, double)

This constructor creates a new instance of the OracleIntervalDS structure and sets its value using the supplied days, hours, minutes, seconds, and milliseconds.

Declaration
// C#
public OracleIntervalDS (int days, int hours, int minutes, int seconds,
 double milliSeconds); 
Parameters
Exceptions

ArgumentOutOfRangeException - The argument value for one or more of the parameters is out of the specified range.

ArgumentException - The argument values of the parameters cannot be used to construct a valid OracleIntervalDS.

Remarks

The sign of all the arguments must be the same.

See Also:

OracleIntervalDS(int, int, int, int, int)

This constructor creates a new instance of the OracleIntervalDS structure and sets its value using the supplied days, hours, minutes, seconds, and nanoseconds.

Declaration
// C#
public OracleIntervalDS (int days, int hours, int minutes, int seconds,
 int nanoseconds);  
Parameters
Exceptions

ArgumentOutOfRangeException - The argument value for one or more of the parameters is out of the specified range.

ArgumentException - The argument values of the parameters cannot be used to construct a valid OracleIntervalDS.

Remarks

The sign of all the arguments must be the same.

See Also:

OracleIntervalDS(byte[ ])

This constructor creates a new instance of the OracleIntervalDS structure and sets its value to the provided byte array, which is in an internal Oracle INTERVAL DAY TO SECOND format.

Declaration
// C#
public OracleIntervalDS (byte[ ] bytes);
Parameters
Exceptions

ArgumentException - bytes is not in internal Oracle INTERVAL DAY TO SECOND format, or bytes is not a valid Oracle INTERVAL DAY TO SECOND.

ArgumentNullException - bytes is null.

See Also:

OracleIntervalDS Static Fields

The OracleIntervalDS static fields are listed in Table 5-55.

Table 5-55 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

See Also:

MaxValue

This static field represents the maximum value for an OracleIntervalDS structure.

Declaration
// C#
public static readonly OracleIntervalDS MaxValue;
Remarks

Maximum values:

MinValue

This static field represents the minimum value for an OracleIntervalDS structure.

Declaration
// C#
public static readonly OracleIntervalDS MinValue;
Remarks

Minimum values:

Null

This static field represents a null value that can be assigned to an OracleIntervalDS instance.

Declaration
// C#
public static readonly OracleIntervalDS Null;

See Also:

Zero

This static field represents a zero value for an OracleIntervalDS structure.

Declaration
// C#
public static readonly OracleIntervalDS Zero;

See Also:

OracleIntervalDS Static Methods

The OracleIntervalDS static methods are listed in Table 5-56.

Table 5-56 OracleIntervalDS Static Methods  
Methods Description

Equals

Determines whether two OracleIntervalDS values are equal (Overloaded)

GreaterThan

Determines whether one OracleIntervalDS value is greater than another

GreaterThanOrEqual

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

LessThan

Determines whether one OracleIntervalDS value is less than another

LessThanOrEqual

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

NotEquals

Determines whether 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

See Also:

Equals

This static method determines whether two OracleIntervalDS values are equal.

Declaration
// C#
public static bool Equals(OracleIntervalDS val1, OracleIntervalDS val2);
Parameters
Return Value

If the two OracleIntervalDS structures represent the same time interval, returns true; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

GreaterThan

This static method determines whether the first of two OracleIntervalDS values is greater than the second.

Declaration
// C#
public static bool GreaterThan(OracleIntervalDS val1, OracleIntervalDS val2);
Parameters
Return Value

Returns true if the first of two OracleIntervalDS values is greater than the second; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

GreaterThanOrEqual

This static method determines whether the first of two OracleIntervalDS values is greater than or equal to the second.

Declaration
// C#
public static bool GreaterThanOrEqual(OracleIntervalDS val1, 
   OracleIntervalDS val2);
Parameters
Return Value

Returns true if the first of two OracleIntervalDS values is greater than or equal to the second; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

LessThan

This static method determines whether the first of two OracleIntervalDS values is less than the second.

Declaration
// C#
public static bool LessThan(OracleIntervalDS val1, OracleIntervalDS val2);
Parameters
Return Value

Returns true if the first of two OracleIntervalDS values is less than the second; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

LessThanOrEqual

This static method determines whether the first of two OracleIntervalDS values is less than or equal to the second.

Declaration
// C#
public static bool LessThanOrEqual(OracleIntervalDS val1, OracleIntervalDS 
val2);
Parameters
Return Value

Returns true if the first of two OracleIntervalDS values is less than or equal to the second; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

NotEquals

This static method determines whether two OracleIntervalDS values are not equal.

Declaration
// C#
public static bool NotEquals(OracleIntervalDS val1, OracleIntervalDS val2);
Parameters
Return Value

Returns true if two OracleIntervalDS values are not equal; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

Parse

This static method returns an OracleIntervalDS instance and sets its value for time interval using a string.

Declaration
// C#
public static OracleIntervalDS Parse(string intervalStr);
Parameters
Return Value

Returns an OracleIntervalDS instance representing the time interval from the supplied string.

Exceptions

ArgumentException - The intervalStr parameter is not in the valid format or intervalStr has an invalid value.

ArgumentNullException - The intervalStr parameter is null.

Remarks

The value specified in intervalStr must be in Day HH:MI:SSxFF format.

Example

"1 2:3:4.99" means 1 day, 2 hours, 3 minutes, 4 seconds, and 990 milliseconds or 1 day, 2 hours, 3 minutes, 4 seconds, and 990000000 nanoseconds.

See Also:

SetPrecision

This static method returns a new instance of an OracleIntervalDS with the specified day precision and fractional second precision.

Declaration
// C#
public static OracleIntervalDS SetPrecision(OracleIntervalDS value1,int 
dayPrecision, int fracSecPrecision);
Parameters
Return Value

An OracleIntervalDS instance.

Exceptions

ArgumentOutOfRangeException - An argument value is out of the specified range.

Remarks

Depending on the value specified in the supplied dayPrecision, 0 or more leading zeros are displayed in the string returned by ToString().

The value specified in the supplied fracSecPrecision is used to perform a rounding off operation on the supplied OracleIntervalDS value. Depending on this value, 0 or more trailing zeros are displayed in the string returned by ToString().

Example

The OracleIntervalDS with a value of "1 2:3:4.99" results in the string "001 2:3:4.99000" when SetPrecision() is called, with the day precision set to 3 and fractional second precision set to 5.

See Also:

OracleIntervalDS Static Operators

The OracleIntervalDS static operators are listed in Table 5-57.

Table 5-57 OracleIntervalDS Static Operators  
Operator Description

operator +

Adds two OracleIntervalDS values

operator ==

Determines whether two OracleIntervalDS values are equal

operator >

Determines whether one OracleIntervalDS value is greater than another

operator >=

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

operator !=

Determines whether two OracleIntervalDS values are not equal

operator <

Determines whether one OracleIntervalDS value is less than another

operator <=

Determines whether 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

See Also:

operator +

This static operator adds two OracleIntervalDS values.

Declaration
// C#
public static OracleIntervalDS operator + (OracleIntervalDS val1,  
OracleIntervalDS val2);
Parameters
Return Value

An OracleIntervalDS.

Remarks

If either argument has a null value, the returned OracleIntervalDS structure has a null value.

See Also:

operator ==

This static operator determines if two OracleIntervalDS values are equal.

Declaration
// C#
public static bool operator == (OracleIntervalDS val1, OracleIntervalDS val2);
Parameters
Return Value

Returns true if the two OracleIntervalDS values are the same; otherwise returns false.

Remarks

The following rules apply to the behavior of this method.

operator >

This static operator determines if the first of two OracleIntervalDS values is greater than the second.

Declaration
// C#
public static bool operator > (OracleIntervalDS val1, OracleIntervalDS val2);
Parameters
Return Value

Returns true if one OracleIntervalDS value is greater than another; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

operator >=

This static operator determines if the first of two OracleIntervalDS values is greater than or equal to the second.

Declaration
// C#
public static bool operator >= (OracleIntervalDS val1, OracleIntervalDS val2);
Parameters
Return Value

Returns true if the first of two OracleIntervalDS values is greater than or equal to the second; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

operator !=

This static operator determines if the two OracleIntervalDS values are not equal.

Declaration
// C#
public static bool operator != (OracleIntervalDS val1, OracleIntervalDS val2);
Parameters
Return Value

Returns true if the two OracleIntervalDS values are not equal; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

operator <

This static operator determines if the first of two OracleIntervalDS values is less than the second.

Declaration
// C#
public static bool operator < (OracleIntervalDS val1, OracleIntervalDS val2);
Parameters
Return Value

Returns true if the first of two OracleIntervalDS values is less than the second; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

operator <=

This static operator determines if the first of two OracleIntervalDS values is less than or equal to the second.

Declaration
// C#
public static bool operator <= (OracleIntervalDS val1, OracleIntervalDS val2);
Parameters
Return Value

Returns true if the first of two OracleIntervalDS values is less than or equal to the second; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

operator -

This static operator subtracts one OracleIntervalDS structure from another.

Declaration
// C#
public static OracleIntervalDS operator - (OracleIntervalDS val1, 
OracleIntervalDS val2);
Parameters
Return Value

An OracleIntervalDS structure.

Remarks

If either argument has a null value, the returned OracleIntervalDS structure has a null value.

See Also:

operator -

This static operator negates the supplied OracleIntervalDS structure.

Declaration
// C#
public static OracleIntervalDS operator - (OracleIntervalDS val);
Parameters
Return Value

An OracleIntervalDS structure.

Remarks

If the supplied OracleIntervalDS structure has a null value, the returned OracleIntervalDS structure has a null value.

See Also:

operator *

This static operator multiplies an OracleIntervalDS value by a number.

Declaration
// C#
public static OracleIntervalDS operator * (OracleIntervalDS val1, int 
multiplier);
Parameters
Return Value

A new OracleIntervalDS instance.

Remarks

If the OracleIntervalDS structure has a null value, the returned OracleIntervalDS structure has a null value.

See Also:

operator /

This static operator divides an OracleIntervalDS value by a number.

Declaration
// C#
public static OracleIntervalDS operator / (OracleIntervalDS val1, int divisor);
Parameters
Return Value

An OracleIntervalDS structure.

Remarks

If the OracleIntervalDS structure has a null value, the returned OracleIntervalDS structure has a null value.

See Also:

OracleIntervalDS Type Conversions

The OracleIntervalDS type conversions are listed in Table 5-58.

Table 5-58 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

See Also:

explicit operator TimeSpan

This type conversion operator converts an OracleIntervalDS structure to a TimeSpan structure.

Declaration
// C#
public static explicit operator TimeSpan(OracleIntervalDS val);
Parameters
Return Value

A TimeSpan structure.

Exceptions

OracleNullValueException - The OracleIntervalDS structure has a null value.

Remarks

See Also:

explicit operator OracleIntervalDS

This type conversion operator converts a string to an OracleIntervalDS structure.

Declaration
// C#
public static explicit operator OracleIntervalDS (string intervalStr);
Parameters
Return Value

An OracleIntervalDS structure.

Exceptions

ArgumentException - The supplied intervalStr parameter is not in the correct format or has an invalid value.

ArgumentNullException - The intervalStr parameter is null.

Remarks

The returned OracleIntervalDS structure contains the same time interval represented by the supplied intervalStr. The value specified in the supplied intervalStr must be in Day HH:MI:SSxFF format.

Example

"1 2:3:4.99" means 1 day, 2 hours, 3 minutes 4 seconds and 990 milliseconds or 1 day, 2 hours, 3 minutes 4 seconds and 990000000 nanoseconds.

See Also:

implicit operator OracleIntervalDS

This type conversion operator converts a TimeSpan structure to an OracleIntervalDS structure.

Declaration
// C#
public static implicit operator OracleIntervalDS(TimeSpan val);
Parameters
Return Value

An OracleIntervalDS structure.

Remarks

The returned OracleIntervalDS structure contains the same days, hours, seconds, and milliseconds as the supplied TimeSpan val.

See Also:

OracleIntervalDS Properties

The OracleIntervalDS properties are listed in Table 5-59.

Table 5-59 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 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

See Also:

BinData

This property returns an array of bytes that represents the Oracle INTERVAL DAY TO SECOND in Oracle internal format.

Declaration
// C#
public byte[] BinData {get;}
Property Value

A byte array that represents an Oracle INTERVAL DAY TO SECOND in Oracle internal format.

Exceptions

OracleNullValueException - The current instance has a null value.

Remarks

See Also:

Days

This property gets the days component of an OracleIntervalDS.

Declaration
// C#
public int Days {get;}
Property Value

An int representing the days component.

Exceptions

OracleNullValueException - The current instance has a null value.

See Also:

Hours

This property gets the hours component of an OracleIntervalDS.

Declaration
// C#
public int Hours {get;}
Property Value

An int representing the hours component.

Exceptions

OracleNullValueException - The current instance has a null value.

See Also:

IsNull

This property indicates whether the current instance has a null value.

Declaration
// C#
public bool IsNull {get;}
Property Value

Returns true if the current instance has a null value; otherwise, returns false.

See Also:

Milliseconds

This property gets the milliseconds component of an OracleIntervalDS.

Declaration
// C#
public double Milliseconds {get;}
Property Value

A double that represents milliseconds component.

Exceptions

OracleNullValueException - The current instance has a null value.

See Also:

Minutes

This property gets the minutes component of an OracleIntervalDS.

Declaration
// C#
public int Minutes {get;}
Property Value

A int that represents minutes component.

Exceptions

OracleNullValueException - The current instance has a null value.

See Also:

Nanoseconds

This property gets the nanoseconds component of an OracleIntervalDS.

Declaration
// C#
public int Nanoseconds {get;}
Property Value

An int that represents nanoseconds component.

Exceptions

OracleNullValueException - The current instance has a null value.

See Also:

Seconds

This property gets the seconds component of an OracleIntervalDS.

Declaration
// C#
public int Seconds {get;}
Property Value

An int that represents seconds component.

Exceptions

OracleNullValueException - The current instance has a null value.

See Also:

TotalDays

This property returns the total number, in days, that represent the time period in the OracleIntervalDS structure.

Declaration
// C#
public double TotalDays {get;}
Property Value

A double that represents the total number of days.

Exceptions

OracleNullValueException - The current instance has a null value.

See Also:

Value

This property specifies the time interval that is stored in the OracleIntervalDS structure.

Declaration
// C#
public TimeSpan Value {get;}
Property Value

A time interval.

Exceptions

OracleNullValueException - The current instance has a null value.

See Also:

OracleIntervalDS Methods

The OracleIntervalDS methods are listed in Table 5-60.

Table 5-60 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 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 Object

ToString

Converts the current OracleIntervalDS structure to a string

See Also:

CompareTo

This method compares the current OracleIntervalDS instance to an object, and returns an integer that represents their relative values.

Declaration
// C#
public int CompareTo(object obj);
Parameters
Return Value

The method returns:

Implements

IComparable

Exceptions

ArgumentException - The obj parameter is not of type OracleIntervalDS.

Remarks

The following rules apply to the behavior of this method.

Equals

This method determines whether the specified object has the same time interval as the current instance.

Declaration
// C#
public override bool Equals(object obj);
Parameters
Return Value

Returns true if obj is of type OracleIntervalDS and has the same time interval as the current instance; otherwise, returns false.

Remarks

The following rules apply to the behavior of this method.

GetHashCode

Overrides Object

This method returns a hash code for the OracleIntervalDS instance.

Declaration
// C#
public override int GetHashCode();

See Also:

ToString

Overrides Object

This method converts the current OracleIntervalDS structure to a string.

Declaration
// C#
public override string ToString();
Return Value

Returns a string.

Remarks

If the current instance has a null value, the returned string contains "null".

See Also:


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 2002 Oracle Corporation.

All Rights Reserved.
Go To Table Of Contents
Contents
Go To Index
Index