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)

使用提供的雙精確度浮點數 (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,可以指派至 SqlDouble 結構的執行個體。Represents 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.

適用於

另請參閱