Export (0) Print
Expand All

OracleMonthSpan Structure

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

Namespace:  System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

'Declaration
Public Structure OracleMonthSpan _
	Implements IComparable, INullable

The OracleMonthSpan type exposes the following members.

  NameDescription
Public methodOracleMonthSpan(Int32)Initializes a new OracleMonthSpan structure to the specified number of months.
Public methodOracleMonthSpan(OracleMonthSpan)Initializes a new OracleMonthSpan structure from an existing one.
Public methodOracleMonthSpan(Int32, Int32)Initializes a new OracleMonthSpan structure to a specified number years and months.
Top

  NameDescription
Public propertyIsNullGets a value indicating whether the Value property of the OracleMonthSpan structure is null.
Public propertyValueGets the value of the OracleMonthSpan structure.
Top

  NameDescription
Public methodCompareToCompares this OracleMonthSpan structure to the supplied object and returns an indication of their relative values.
Public methodEquals(Object)Compares the supplied object parameter to the Value property of the OracleMonthSpan object. (Overrides ValueType.Equals(Object).)
Public methodStatic memberEquals(OracleMonthSpan, OracleMonthSpan)Performs a logical comparison of two OracleMonthSpan structures to determine if they are equal.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeGets the hash code for this instance. (Overrides ValueType.GetHashCode.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberGreaterThanCompares two instances of OracleMonthSpan to determine if the first is greater than the second.
Public methodStatic memberGreaterThanOrEqualCompares two instances of OracleMonthSpan to determine if the first is greater than or equal to the second.
Public methodStatic memberLessThanCompares two instances of OracleMonthSpan to determine if the first is less than the second.
Public methodStatic memberLessThanOrEqualCompares two instances of OracleMonthSpan to determine if the first is less than or equal to the second.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberNotEqualsPerforms a logical comparison of two instances of OracleMonthSpan to determine if they are not equal.
Public methodStatic memberParseConverts the specified String representation of a date and time to its OracleMonthSpan equivalent.
Public methodToStringConverts this OracleMonthSpan structure to a String. (Overrides ValueType.ToString.)
Top

  NameDescription
Public operatorStatic memberEqualityPerforms a logical comparison of two OracleMonthSpan structures to determine if they are equal.
Public operatorStatic memberNarrowing(OracleMonthSpan to Int32)Converts an OracleMonthSpan structure to an Int32.
Public operatorStatic memberNarrowing(String to OracleMonthSpan)Converts a string to an OracleMonthSpan structure.
Public operatorStatic memberGreaterThanCompares two instances of OracleMonthSpan to determine if the first is greater than the second.
Public operatorStatic memberGreaterThanOrEqualCompares two instances of OracleMonthSpan to determine if the first is greater than or equal to the second.
Public operatorStatic memberInequalityPerforms a logical comparison of two instances of OracleMonthSpan to determine if they are equal.
Public operatorStatic memberLessThanCompares two instances of OracleMonthSpan to determine if the first is less than the second.
Public operatorStatic memberLessThanOrEqualCompares two instances of OracleMonthSpan to determine if the first is less than or equal to the second.
Top

  NameDescription
Public fieldStatic memberMaxValueRepresents the maximum valid date value for an OracleMonthSpan structure.
Public fieldStatic memberMinValueRepresents the minimum valid date value for an OracleMonthSpan structure.
Public fieldStatic memberNullRepresents a null value that can be assigned to the Value property of an instance of the OracleMonthSpan structure.
Top

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft