OracleMonthSpan OracleMonthSpan OracleMonthSpan OracleMonthSpan Struct

定义

表示用月份表示的时间间隔,并对应于 Oracle 9i INTERVAL YEAR TO MONTH 数据类型。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
继承
OracleMonthSpanOracleMonthSpanOracleMonthSpanOracleMonthSpan
实现

注解

OracleINTERVAL YEAR TO MONTH数据类型 (Oracle 9i 或更高版本) 包含以年和月,时间间隔,并且具有固定的大小的 5 个字节。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.

若要获取OracleMonthSpan对象,请调用GetOracleMonthSpan方法。To obtain an OracleMonthSpan object, call the GetOracleMonthSpan method.

构造函数

OracleMonthSpan(OracleMonthSpan) OracleMonthSpan(OracleMonthSpan) OracleMonthSpan(OracleMonthSpan) OracleMonthSpan(OracleMonthSpan)

从现有 OracleMonthSpan 结构中初始化新结构。Initializes a new OracleMonthSpan structure from an existing one.

OracleMonthSpan(Int32) OracleMonthSpan(Int32) OracleMonthSpan(Int32) OracleMonthSpan(Int32)

将新的 OracleMonthSpan 结构初始化为指定的月份数。Initializes a new OracleMonthSpan structure to the specified number of months.

OracleMonthSpan(Int32, Int32) OracleMonthSpan(Int32, Int32) OracleMonthSpan(Int32, Int32) OracleMonthSpan(Int32, Int32)

将新 OracleMonthSpan 结构初始化为指定的年份和月份数。Initializes a new OracleMonthSpan structure to a specified number years and months.

字段

MaxValue MaxValue MaxValue MaxValue

表示 OracleMonthSpan 结构的最大有效日期值。Represents the maximum valid date value for an OracleMonthSpan structure.

MinValue MinValue MinValue MinValue

表示 OracleMonthSpan 结构的最小有效日期值。Represents the minimum valid date value for an OracleMonthSpan structure.

Null Null Null Null

表示可分配给 Value 结构实例的 OracleMonthSpan 属性的 null 值。Represents a null value that can be assigned to the Value property of an instance of the OracleMonthSpan structure.

属性

IsNull IsNull IsNull IsNull

获取一个值,该值指示 Value 结构的 OracleMonthSpan 属性是否为 null。Gets a value indicating whether the Value property of the OracleMonthSpan structure is null.

Value Value Value Value

获取 OracleMonthSpan 结构的值。Gets the value of the OracleMonthSpan structure.

方法

CompareTo(Object) CompareTo(Object) CompareTo(Object) CompareTo(Object)

将此 OracleMonthSpan 结构与所提供的对象进行比较,并返回其相对值的指示。Compares this OracleMonthSpan structure to the supplied object and returns an indication of their relative values.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

将提供的对象参数与 Value 对象的 OracleMonthSpan 属性进行比较。Compares the supplied object parameter to the Value property of the OracleMonthSpan object.

Equals(OracleMonthSpan, OracleMonthSpan) Equals(OracleMonthSpan, OracleMonthSpan) Equals(OracleMonthSpan, OracleMonthSpan) Equals(OracleMonthSpan, OracleMonthSpan)

对两个 OracleMonthSpan 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two OracleMonthSpan structures to determine if they are equal.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

获取此实例的哈希代码。Gets the hash code for this instance.

GreaterThan(OracleMonthSpan, OracleMonthSpan) GreaterThan(OracleMonthSpan, OracleMonthSpan) GreaterThan(OracleMonthSpan, OracleMonthSpan) GreaterThan(OracleMonthSpan, OracleMonthSpan)

OracleMonthSpan 的两个实例进行比较,以确定第一个实例是否大于第二个实例。Compares two instances of OracleMonthSpan to determine if the first is greater than the second.

GreaterThanOrEqual(OracleMonthSpan, OracleMonthSpan) GreaterThanOrEqual(OracleMonthSpan, OracleMonthSpan) GreaterThanOrEqual(OracleMonthSpan, OracleMonthSpan) GreaterThanOrEqual(OracleMonthSpan, OracleMonthSpan)

OracleMonthSpan 的两个实例进行比较,以确定第一个实例是否大于或等于第二个实例。Compares two instances of OracleMonthSpan to determine if the first is greater than or equal to the second.

LessThan(OracleMonthSpan, OracleMonthSpan) LessThan(OracleMonthSpan, OracleMonthSpan) LessThan(OracleMonthSpan, OracleMonthSpan) LessThan(OracleMonthSpan, OracleMonthSpan)

OracleMonthSpan 的两个实例进行比较,以确定第一个实例是否小于第二个实例。Compares two instances of OracleMonthSpan to determine if the first is less than the second.

LessThanOrEqual(OracleMonthSpan, OracleMonthSpan) LessThanOrEqual(OracleMonthSpan, OracleMonthSpan) LessThanOrEqual(OracleMonthSpan, OracleMonthSpan) LessThanOrEqual(OracleMonthSpan, OracleMonthSpan)

OracleMonthSpan 的两个实例进行比较,以确定第一个实例是否小于或等于第二个实例。Compares two instances of OracleMonthSpan to determine if the first is less than or equal to the second.

NotEquals(OracleMonthSpan, OracleMonthSpan) NotEquals(OracleMonthSpan, OracleMonthSpan) NotEquals(OracleMonthSpan, OracleMonthSpan) NotEquals(OracleMonthSpan, OracleMonthSpan)

OracleMonthSpan 的两个实例执行逻辑比较,确定它们是否相等。Performs a logical comparison of two instances of OracleMonthSpan to determine if they are not equal.

Parse(String) Parse(String) Parse(String) Parse(String)

将日期和时间的指定的 String 表示形式转换为其等效的 OracleMonthSpan 形式。Converts the specified String representation of a date and time to its OracleMonthSpan equivalent.

ToString() ToString() ToString() ToString()

将此 OracleMonthSpan 结构转换为 StringConverts this OracleMonthSpan structure to a String.

操作员

Equality(OracleMonthSpan, OracleMonthSpan) Equality(OracleMonthSpan, OracleMonthSpan) Equality(OracleMonthSpan, OracleMonthSpan) Equality(OracleMonthSpan, OracleMonthSpan)

对两个 OracleMonthSpan 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two OracleMonthSpan structures to determine if they are equal.

Explicit(OracleMonthSpan to Int32) Explicit(OracleMonthSpan to Int32) Explicit(OracleMonthSpan to Int32) Explicit(OracleMonthSpan to Int32)

OracleMonthSpan 结构转换为 Int32Converts an OracleMonthSpan structure to an Int32.

Explicit(String to OracleMonthSpan) Explicit(String to OracleMonthSpan) Explicit(String to OracleMonthSpan) Explicit(String to OracleMonthSpan)

将字符串转换为 OracleMonthSpan 结构。Converts a string to an OracleMonthSpan structure.

GreaterThan(OracleMonthSpan, OracleMonthSpan) GreaterThan(OracleMonthSpan, OracleMonthSpan) GreaterThan(OracleMonthSpan, OracleMonthSpan) GreaterThan(OracleMonthSpan, OracleMonthSpan)

OracleMonthSpan 的两个实例进行比较,以确定第一个实例是否大于第二个实例。Compares two instances of OracleMonthSpan to determine if the first is greater than the second.

GreaterThanOrEqual(OracleMonthSpan, OracleMonthSpan) GreaterThanOrEqual(OracleMonthSpan, OracleMonthSpan) GreaterThanOrEqual(OracleMonthSpan, OracleMonthSpan) GreaterThanOrEqual(OracleMonthSpan, OracleMonthSpan)

OracleMonthSpan 的两个实例进行比较,以确定第一个实例是否大于或等于第二个实例。Compares two instances of OracleMonthSpan to determine if the first is greater than or equal to the second.

Inequality(OracleMonthSpan, OracleMonthSpan) Inequality(OracleMonthSpan, OracleMonthSpan) Inequality(OracleMonthSpan, OracleMonthSpan) Inequality(OracleMonthSpan, OracleMonthSpan)

OracleMonthSpan 的两个实例执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two instances of OracleMonthSpan to determine if they are equal.

LessThan(OracleMonthSpan, OracleMonthSpan) LessThan(OracleMonthSpan, OracleMonthSpan) LessThan(OracleMonthSpan, OracleMonthSpan) LessThan(OracleMonthSpan, OracleMonthSpan)

OracleMonthSpan 的两个实例进行比较,以确定第一个实例是否小于第二个实例。Compares two instances of OracleMonthSpan to determine if the first is less than the second.

LessThanOrEqual(OracleMonthSpan, OracleMonthSpan) LessThanOrEqual(OracleMonthSpan, OracleMonthSpan) LessThanOrEqual(OracleMonthSpan, OracleMonthSpan) LessThanOrEqual(OracleMonthSpan, OracleMonthSpan)

OracleMonthSpan 的两个实例进行比较,以确定第一个实例是否小于或等于第二个实例。Compares two instances of OracleMonthSpan to determine if the first is less than or equal to the second.

适用于