संपादित करें

इसके माध्यम से साझा किया गया


OracleMonthSpan Struct

Definition

Represents a time interval in months and corresponds to the Oracle 9i INTERVAL YEAR TO MONTH data type.

public value class OracleMonthSpan : IComparable, System::Data::SqlTypes::INullable
public struct OracleMonthSpan : IComparable, System.Data.SqlTypes.INullable
type OracleMonthSpan = struct
    interface INullable
Public Structure OracleMonthSpan
Implements IComparable, INullable
Inheritance
OracleMonthSpan
Implements

Remarks

The Oracle INTERVAL YEAR TO MONTH data type (Oracle 9i or later) contains an interval of time in years and months, and has a fixed size of 5 bytes.

To obtain an OracleMonthSpan object, call the GetOracleMonthSpan method.

Constructors

OracleMonthSpan(Int32, Int32)

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

OracleMonthSpan(Int32)

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

OracleMonthSpan(OracleMonthSpan)

Initializes a new OracleMonthSpan structure from an existing one.

Fields

MaxValue

Represents the maximum valid date value for an OracleMonthSpan structure.

MinValue

Represents the minimum valid date value for an OracleMonthSpan structure.

Null

Represents a null value that can be assigned to the Value property of an instance of the OracleMonthSpan structure.

Properties

IsNull

Gets a value indicating whether the Value property of the OracleMonthSpan structure is null.

Value

Gets the value of the OracleMonthSpan structure.

Methods

CompareTo(Object)

Compares this OracleMonthSpan structure to the supplied object and returns an indication of their relative values.

Equals(Object)

Compares the supplied object parameter to the Value property of the OracleMonthSpan object.

Equals(OracleMonthSpan, OracleMonthSpan)

Performs a logical comparison of two OracleMonthSpan structures to determine if they are equal.

GetHashCode()

Gets the hash code for this instance.

GreaterThan(OracleMonthSpan, OracleMonthSpan)

Compares two instances of OracleMonthSpan to determine if the first is greater than the second.

GreaterThanOrEqual(OracleMonthSpan, OracleMonthSpan)

Compares two instances of OracleMonthSpan to determine if the first is greater than or equal to the second.

LessThan(OracleMonthSpan, OracleMonthSpan)

Compares two instances of OracleMonthSpan to determine if the first is less than the second.

LessThanOrEqual(OracleMonthSpan, OracleMonthSpan)

Compares two instances of OracleMonthSpan to determine if the first is less than or equal to the second.

NotEquals(OracleMonthSpan, OracleMonthSpan)

Performs a logical comparison of two instances of OracleMonthSpan to determine if they are not equal.

Parse(String)

Converts the specified String representation of a date and time to its OracleMonthSpan equivalent.

ToString()

Converts this OracleMonthSpan structure to a String.

Operators

Equality(OracleMonthSpan, OracleMonthSpan)

Performs a logical comparison of two OracleMonthSpan structures to determine if they are equal.

Explicit(OracleMonthSpan to Int32)

Converts an OracleMonthSpan structure to an Int32.

Explicit(String to OracleMonthSpan)

Converts a string to an OracleMonthSpan structure.

GreaterThan(OracleMonthSpan, OracleMonthSpan)

Compares two instances of OracleMonthSpan to determine if the first is greater than the second.

GreaterThanOrEqual(OracleMonthSpan, OracleMonthSpan)

Compares two instances of OracleMonthSpan to determine if the first is greater than or equal to the second.

Inequality(OracleMonthSpan, OracleMonthSpan)

Performs a logical comparison of two instances of OracleMonthSpan to determine if they are equal.

LessThan(OracleMonthSpan, OracleMonthSpan)

Compares two instances of OracleMonthSpan to determine if the first is less than the second.

LessThanOrEqual(OracleMonthSpan, OracleMonthSpan)

Compares two instances of OracleMonthSpan to determine if the first is less than or equal to the second.

Applies to