SqlDouble 结构

定义

表示要存储在数据库中或从数据库中检索的浮点数字,该数字介于 -1.79E+308 到 1.79E+308 的范围内。Represents a floating-point number within the range of -1.79E +308 through 1.79E +308 to be stored in or retrieved from a database.

public value class SqlDouble : IComparable, System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
[System.Serializable]
public struct SqlDouble : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlDouble = struct
    interface INullable
    interface IXmlSerializable
Public Structure SqlDouble
Implements IComparable, INullable, IXmlSerializable
继承
SqlDouble
属性
实现

构造函数

SqlDouble(Double)

通过使用提供的双精度型参数设置新 SqlDouble 结构的 SqlDouble 属性,从而初始化 Value 结构的新实例。Initializes a new instance of the SqlDouble structure using the supplied double parameter to set the new SqlDouble structure's Value property.

字段

MaxValue

一个常数,表示 SqlDouble 结构的最大值。A constant representing the maximum value for a SqlDouble structure.

MinValue

表示 SqlDouble 的最小可能值的常数。A constant representing the minimum possible value of SqlDouble.

Null

表示可指派给 DBNull 结构的此实例的 SqlDoubleRepresents a DBNull that can be assigned to this instance of the SqlDouble structure.

Zero

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

属性

IsNull

返回一个布尔值,该值指示此 SqlDouble 实例是否为 null。Returns a Boolean value that indicates whether this SqlDouble instance is null.

Value

获取 SqlDouble 结构的值。Gets the value of the SqlDouble structure. 此属性是只读的。This property is read-only.

方法

Add(SqlDouble, SqlDouble)

该加法运算符计算两个 SqlDouble 操作数的和。The addition operator computes the sum of the two SqlDouble operands.

CompareTo(Object)

将此 SqlDouble 实例与所提供的 Object 进行比较,并返回二者相对值的指示值。Compares this SqlDouble instance to the supplied Object and returns an indication of their relative values.

CompareTo(SqlDouble)

将此 SqlDouble 实例与所提供的 SqlDouble 进行比较,并返回二者相对值的指示值。Compares this SqlDouble instance to the supplied SqlDouble and returns an indication of their relative values.

Divide(SqlDouble, SqlDouble)

该除法运算符将第一个 SqlDouble 操作数除以第二个操作数。The division operator divides the first SqlDouble operand by the second.

Equals(Object)

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

Equals(SqlDouble, SqlDouble)

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

GetHashCode()

返回此 SqlDouble 结构的哈希代码。Returns the hash code for this SqlDouble structure.

GetXsdType(XmlSchemaSet)

返回指定的 XmlSchemaSet 的 XML 架构定义语言 (XSD)。Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet.

GreaterThan(SqlDouble, SqlDouble)

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

GreaterThanOrEqual(SqlDouble, SqlDouble)

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

LessThan(SqlDouble, SqlDouble)

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

LessThanOrEqual(SqlDouble, SqlDouble)

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

Multiply(SqlDouble, SqlDouble)

该乘法运算符计算两个 SqlDouble 操作数的乘积。The multiplication operator computes the product of the two SqlDouble operands.

NotEquals(SqlDouble, SqlDouble)

SqlDouble 的两个实例进行比较,以确定它们是否不等。Compares two instances of SqlDouble to determine whether they are notequal.

Parse(String)

将数字的 String 表示形式转换为它的等效双精度浮点数字。Converts the String representation of a number to its double-precision floating point number equivalent.

Subtract(SqlDouble, SqlDouble)

该减法运算符从第一个 SqlDouble 操作数中减去第二个操作数。The subtraction operator the second SqlDouble operand from the first.

ToSqlBoolean()

将此 SqlDouble 结构转换为 SqlBooleanConverts this SqlDouble structure to SqlBoolean.

ToSqlByte()

将此 SqlDouble 结构转换为 SqlByteConverts this SqlDouble structure to SqlByte.

ToSqlDecimal()

将此 SqlDouble 结构转换为 SqlDecimalConverts this SqlDouble structure to SqlDecimal.

ToSqlInt16()

将此 SqlDouble 结构转换为 SqlInt16Converts this SqlDouble structure to SqlInt16.

ToSqlInt32()

将此 SqlDouble 结构转换为 SqlInt32Converts this SqlDouble structure to SqlInt32.

ToSqlInt64()

将此 SqlDouble 结构转换为 SqlInt64Converts this SqlDouble structure to SqlInt64.

ToSqlMoney()

将此 SqlDouble 结构转换为 SqlMoneyConverts this SqlDouble structure to SqlMoney.

ToSqlSingle()

将此 SqlDouble 结构转换为 SqlSingleConverts this SqlDouble structure to SqlSingle.

ToSqlString()

将此 SqlDouble 结构转换为 SqlStringConverts this SqlDouble structure to SqlString.

ToString()

将此 SqlDouble 结构转换为字符串。Converts this SqlDouble structure to a string.

操作员

Addition(SqlDouble, SqlDouble)

该加法运算符计算两个 SqlDouble 操作数的和。The addition operator computes the sum of the two SqlDouble operands.

Division(SqlDouble, SqlDouble)

该除法运算符将第一个 SqlDouble 操作数除以第二个操作数。The division operator divides the first SqlDouble operand by the second.

Equality(SqlDouble, SqlDouble)

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

Explicit(SqlBoolean to SqlDouble)

将提供的 SqlBoolean 参数转换为 SqlDoubleConverts the supplied SqlBoolean parameter to SqlDouble.

Explicit(SqlDouble to Double)

将提供的 SqlDouble 结构转换为双精度型值。Converts the supplied SqlDouble structure to double.

Explicit(SqlString to SqlDouble)

将提供的 SqlString 参数转换为 SqlDoubleConverts the supplied SqlString parameter to SqlDouble.

GreaterThan(SqlDouble, SqlDouble)

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

GreaterThanOrEqual(SqlDouble, SqlDouble)

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

Implicit(Double to SqlDouble)

将提供的字节值转换为 SqlDoubleConverts the supplied double value to a SqlDouble.

Implicit(SqlByte to SqlDouble)

将提供的 SqlByte 参数转换为 SqlDoubleConverts the supplied SqlByte parameter to SqlDouble.

Implicit(SqlDecimal to SqlDouble)

将提供的 SqlDecimal 参数转换为 SqlDoubleConverts the supplied SqlDecimal parameter to SqlDouble.

Implicit(SqlInt16 to SqlDouble)

将提供的 SqlInt16 参数转换为 SqlDoubleConverts the supplied SqlInt16 parameter to SqlDouble.

Implicit(SqlInt32 to SqlDouble)

将提供的 SqlInt32 参数转换为 SqlDoubleConverts the supplied SqlInt32 parameter to SqlDouble.

Implicit(SqlInt64 to SqlDouble)

将提供的 SqlInt64 参数转换为 SqlDoubleConverts the supplied SqlInt64 parameter to SqlDouble.

Implicit(SqlMoney to SqlDouble)

将提供的 SqlMoney 参数转换为 SqlDoubleConverts the supplied SqlMoney parameter to SqlDouble.

Implicit(SqlSingle to SqlDouble)

将提供的 SqlSingle 参数转换为 SqlDoubleConverts the supplied SqlSingle parameter to SqlDouble.

Inequality(SqlDouble, SqlDouble)

SqlDouble 的两个实例进行比较,以确定它们是否不相等。Compares two instances of SqlDouble to determine whether they are not equal.

LessThan(SqlDouble, SqlDouble)

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

LessThanOrEqual(SqlDouble, SqlDouble)

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

Multiply(SqlDouble, SqlDouble)

该乘法运算符计算两个 SqlDouble 操作数的乘积。The multiplication operator computes the product of the two SqlDouble operands.

Subtraction(SqlDouble, SqlDouble)

该减法运算符从第一个 SqlDouble 操作数中减去第二个操作数。The subtraction operator the second SqlDouble operand from the first.

UnaryNegation(SqlDouble)

返回指定 SqlDouble 结构的求反值。Returns the negated value of the specified SqlDouble structure.

显式界面实现

IXmlSerializable.GetSchema()

此成员支持 .NET Framework 结构,不能在代码中直接使用。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

IXmlSerializable.ReadXml(XmlReader)

此成员支持 .NET Framework 结构,不能在代码中直接使用。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

IXmlSerializable.WriteXml(XmlWriter)

此成员支持 .NET Framework 结构,不能在代码中直接使用。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

适用于

另请参阅