SqlSingle SqlSingle SqlSingle SqlSingle Struct

定義

表示 -3.40E +38 到 3.40E +38 範圍內的浮點數 (儲存於資料庫或從資料庫擷取)。Represents a floating point number within the range of -3.40E +38 through 3.40E +38 to be stored in or retrieved from a database.

public value class SqlSingle : IComparable, System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
[System.Serializable]
public struct SqlSingle : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlSingle = struct
    interface INullable
    interface IXmlSerializable
Public Structure SqlSingle
Implements IComparable, INullable, IXmlSerializable
繼承
屬性
實作

備註

對應至 SQL Server real 資料類型。Maps to the SQL Server real data type. 如需詳細資訊,請參閱System.Data.SqlTypesFor more information, see System.Data.SqlTypes.

建構函式

SqlSingle(Double) SqlSingle(Double) SqlSingle(Double) SqlSingle(Double)

使用提供的雙精度浮點數 (Double) 參數,初始化 SqlSingle 結構的新執行個體。Initializes a new instance of the SqlSingle structure using the supplied double parameter.

SqlSingle(Single) SqlSingle(Single) SqlSingle(Single) SqlSingle(Single)

初始化 SqlSingle 結構的新執行個體。Initializes a new instance of the SqlSingle structure.

欄位

MaxValue MaxValue MaxValue MaxValue

表示可以指派至 Value 類別之執行個體的 SqlSingle 屬性的最大值。Represents the maximum value that can be assigned to the Value property of an instance of the SqlSingle class.

MinValue MinValue MinValue MinValue

表示可以指派至 Value 類別之執行個體的 SqlSingle 屬性的最小值。Represents the minimum value that can be assigned to Value property of an instance of the SqlSingle class.

Null Null Null Null

表示 DBNull,可以指派至 SqlSingle 結構的執行個體。Represents a DBNull that can be assigned to this instance of the SqlSingle structure.

Zero Zero Zero Zero

表示可以指派至 Value 類別之執行個體的 SqlSingle 屬性的零值。Represents the zero value that can be assigned to the Value property of an instance of the SqlSingle class.

屬性

IsNull IsNull IsNull IsNull

表示這個 SqlSingle 結構是否為 Null。Indicates whether this SqlSingle structure is null.

Value Value Value Value

取得這個 SqlSingle 結構的值。Gets the value of this SqlSingle structure. 這個屬性是唯讀的。This property is read-only.

方法

Add(SqlSingle, SqlSingle) Add(SqlSingle, SqlSingle) Add(SqlSingle, SqlSingle) Add(SqlSingle, SqlSingle)

計算兩個指定的 SqlSingle 結構之總和。Computes the sum of the two specified SqlSingle structures.

CompareTo(SqlSingle) CompareTo(SqlSingle) CompareTo(SqlSingle) CompareTo(SqlSingle)

將這個 SqlSingle 執行個體與提供的 SqlSingle 相比較,並傳回它們相對值的指示。Compares this SqlSingle instance to the supplied SqlSingle and returns an indication of their relative values.

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

將這個 SqlSingle 執行個體與提供的 Object 相比較,並傳回它們相對值的指示。Compares this SqlSingle instance to the supplied Object and returns an indication of their relative values.

Divide(SqlSingle, SqlSingle) Divide(SqlSingle, SqlSingle) Divide(SqlSingle, SqlSingle) Divide(SqlSingle, SqlSingle)

將第一個 SqlSingle 結構除以第二個。Divides the first SqlSingle structure by the second.

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

將提供的物件參數與 Value 物件的 SqlSingle 屬性相比較。Compares the supplied object parameter to the Value property of the SqlSingle object.

Equals(SqlSingle, SqlSingle) Equals(SqlSingle, SqlSingle) Equals(SqlSingle, SqlSingle) Equals(SqlSingle, SqlSingle)

執行兩個 SqlSingle 參數的邏輯比對,以判斷它們是否相等。Performs a logical comparison of the two SqlSingle parameters to determine whether they are equal.

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

取得這個執行個體的雜湊程式碼。Gets the hash code for this instance.

GetXsdType(XmlSchemaSet) GetXsdType(XmlSchemaSet) GetXsdType(XmlSchemaSet) GetXsdType(XmlSchemaSet)

傳回指定之 XmlSchemaSet 的 XML 結構描述定義語言 (XSD)。Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet.

GreaterThan(SqlSingle, SqlSingle) GreaterThan(SqlSingle, SqlSingle) GreaterThan(SqlSingle, SqlSingle) GreaterThan(SqlSingle, SqlSingle)

執行兩個 SqlSingle 運算元的邏輯比對,判斷第一個運算元是否大於第二個。Performs a logical comparison of the two SqlSingle operands to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlSingle, SqlSingle) GreaterThanOrEqual(SqlSingle, SqlSingle) GreaterThanOrEqual(SqlSingle, SqlSingle) GreaterThanOrEqual(SqlSingle, SqlSingle)

執行兩個 SqlSingle 結構的邏輯比對,判斷第一個結構是否大於或等於第二個。Performs a logical comparison of two SqlSingle structures to determine whether the first is greater than or equal to the second.

LessThan(SqlSingle, SqlSingle) LessThan(SqlSingle, SqlSingle) LessThan(SqlSingle, SqlSingle) LessThan(SqlSingle, SqlSingle)

執行兩個 SqlSingle 參數的邏輯比對,以判斷第一個參數是否小於第二個。Performs a logical comparison of the two SqlSingle parameters to determine whether the first is less than the second.

LessThanOrEqual(SqlSingle, SqlSingle) LessThanOrEqual(SqlSingle, SqlSingle) LessThanOrEqual(SqlSingle, SqlSingle) LessThanOrEqual(SqlSingle, SqlSingle)

執行兩個 SqlSingle 參數的邏輯比對,以判斷第一個參數是否小於或等於第二個。Performs a logical comparison of the two SqlSingle parameters to determine whether the first is less than or equal to the second.

Multiply(SqlSingle, SqlSingle) Multiply(SqlSingle, SqlSingle) Multiply(SqlSingle, SqlSingle) Multiply(SqlSingle, SqlSingle)

計算兩個指定的 SqlSingle 結構之乘積。Computes the product of the two specified SqlSingle structures.

NotEquals(SqlSingle, SqlSingle) NotEquals(SqlSingle, SqlSingle) NotEquals(SqlSingle, SqlSingle) NotEquals(SqlSingle, SqlSingle)

執行兩個 SqlSingle 參數的邏輯比對,以判斷它們是否不相等。Performs a logical comparison of the two SqlSingle parameters to determine whether they are not equal.

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

將指定的 String 轉換成 SqlSingle 結構。Converts the specified String to a SqlSingle structure.

Subtract(SqlSingle, SqlSingle) Subtract(SqlSingle, SqlSingle) Subtract(SqlSingle, SqlSingle) Subtract(SqlSingle, SqlSingle)

從第一個 SqlSingle 結構減去第二個結構。Subtracts the second SqlSingle structure from the first.

ToSqlBoolean() ToSqlBoolean() ToSqlBoolean() ToSqlBoolean()

將這個 SqlSingle 結構轉換為 SqlBooleanConverts this SqlSingle structure to SqlBoolean.

ToSqlByte() ToSqlByte() ToSqlByte() ToSqlByte()

將這個 SqlSingle 結構轉換為 SqlByteConverts this SqlSingle structure to SqlByte.

ToSqlDecimal() ToSqlDecimal() ToSqlDecimal() ToSqlDecimal()

將這個 SqlSingle 結構轉換為 SqlDecimalConverts this SqlSingle structure to SqlDecimal.

ToSqlDouble() ToSqlDouble() ToSqlDouble() ToSqlDouble()

將這個 SqlSingle 結構轉換為 SqlDoubleConverts this SqlSingle structure to SqlDouble.

ToSqlInt16() ToSqlInt16() ToSqlInt16() ToSqlInt16()

將這個 SqlSingle 結構轉換為 SqlInt16Converts this SqlSingle structure to SqlInt16.

ToSqlInt32() ToSqlInt32() ToSqlInt32() ToSqlInt32()

將這個 SqlSingle 結構轉換為 SqlInt32Converts this SqlSingle structure to SqlInt32.

ToSqlInt64() ToSqlInt64() ToSqlInt64() ToSqlInt64()

將這個 SqlSingle 結構轉換為 SqlInt64Converts this SqlSingle structure to SqlInt64.

ToSqlMoney() ToSqlMoney() ToSqlMoney() ToSqlMoney()

將這個 SqlSingle 結構轉換為 SqlMoneyConverts this SqlSingle structure to SqlMoney.

ToSqlString() ToSqlString() ToSqlString() ToSqlString()

將這個 SqlSingle 結構轉換為 SqlStringConverts this SqlSingle structure to SqlString.

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

將這個 SqlSingle 結構轉換為 StringConverts this SqlSingle structure to String.

運算子

Addition(SqlSingle, SqlSingle) Addition(SqlSingle, SqlSingle) Addition(SqlSingle, SqlSingle) Addition(SqlSingle, SqlSingle)

計算兩個指定的 SqlSingle 結構之總和。Computes the sum of the two specified SqlSingle structures.

Division(SqlSingle, SqlSingle) Division(SqlSingle, SqlSingle) Division(SqlSingle, SqlSingle) Division(SqlSingle, SqlSingle)

將第一個 SqlSingle 結構除以第二個。Divides the first SqlSingle structure by the second.

Equality(SqlSingle, SqlSingle) Equality(SqlSingle, SqlSingle) Equality(SqlSingle, SqlSingle) Equality(SqlSingle, SqlSingle)

執行兩個 SqlSingle 參數的邏輯比對,以判斷它們是否相等。Performs a logical comparison of the two SqlSingle parameters to determine whether they are equal.

Explicit(SqlBoolean to SqlSingle) Explicit(SqlBoolean to SqlSingle) Explicit(SqlBoolean to SqlSingle) Explicit(SqlBoolean to SqlSingle)

這個隱含運算子會將提供的 SqlBoolean 轉換成 SqlSingleThis implicit operator converts the supplied SqlBoolean to SqlSingle.

Explicit(SqlDouble to SqlSingle) Explicit(SqlDouble to SqlSingle) Explicit(SqlDouble to SqlSingle) Explicit(SqlDouble to SqlSingle)

將提供的 SqlDouble 參數轉換成 SqlSingleConverts the supplied SqlDouble parameter to SqlSingle.

Explicit(SqlSingle to Single) Explicit(SqlSingle to Single) Explicit(SqlSingle to Single) Explicit(SqlSingle to Single)

將指定的 SqlSingle 結構轉換成浮點數 (Float)。Converts the specified SqlSingle structure to float.

Explicit(SqlString to SqlSingle) Explicit(SqlString to SqlSingle) Explicit(SqlString to SqlSingle) Explicit(SqlString to SqlSingle)

將提供的 SqlString 參數轉換成 SqlSingleConverts the supplied SqlString parameter to SqlSingle.

GreaterThan(SqlSingle, SqlSingle) GreaterThan(SqlSingle, SqlSingle) GreaterThan(SqlSingle, SqlSingle) GreaterThan(SqlSingle, SqlSingle)

執行兩個 SqlSingle 運算元的邏輯比對,判斷第一個運算元是否大於第二個。Performs a logical comparison of the two SqlSingle operands to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlSingle, SqlSingle) GreaterThanOrEqual(SqlSingle, SqlSingle) GreaterThanOrEqual(SqlSingle, SqlSingle) GreaterThanOrEqual(SqlSingle, SqlSingle)

執行兩個 SqlSingle 結構的邏輯比對,判斷第一個結構是否大於或等於第二個。Performs a logical comparison of two SqlSingle structures to determine whether the first is greater than or equal to the second.

Implicit(Single to SqlSingle) Implicit(Single to SqlSingle) Implicit(Single to SqlSingle) Implicit(Single to SqlSingle)

將指定的浮點數值轉換成 SqlSingleConverts the specified floating point value to SqlSingle.

Implicit(SqlMoney to SqlSingle) Implicit(SqlMoney to SqlSingle) Implicit(SqlMoney to SqlSingle) Implicit(SqlMoney to SqlSingle)

將提供的 SqlMoney 結構轉換成 SqlSingleConverts the supplied SqlMoney structure to SqlSingle.

Implicit(SqlInt64 to SqlSingle) Implicit(SqlInt64 to SqlSingle) Implicit(SqlInt64 to SqlSingle) Implicit(SqlInt64 to SqlSingle)

將提供的 SqlInt64 參數轉換成 SqlSingleConverts the supplied SqlInt64 parameter to SqlSingle.

Implicit(SqlByte to SqlSingle) Implicit(SqlByte to SqlSingle) Implicit(SqlByte to SqlSingle) Implicit(SqlByte to SqlSingle)

這個隱含運算子會將 SqlByte 參數轉換成 SqlSingleThis implicit operator converts the SqlByte parameter to SqlSingle.

Implicit(SqlInt16 to SqlSingle) Implicit(SqlInt16 to SqlSingle) Implicit(SqlInt16 to SqlSingle) Implicit(SqlInt16 to SqlSingle)

將提供的 SqlInt16 參數轉換成 SqlSingleConverts the supplied SqlInt16 parameter to SqlSingle.

Implicit(SqlDecimal to SqlSingle) Implicit(SqlDecimal to SqlSingle) Implicit(SqlDecimal to SqlSingle) Implicit(SqlDecimal to SqlSingle)

將提供的 SqlDecimal 參數轉換成 SqlSingleConverts the supplied SqlDecimal parameter to SqlSingle.

Implicit(SqlInt32 to SqlSingle) Implicit(SqlInt32 to SqlSingle) Implicit(SqlInt32 to SqlSingle) Implicit(SqlInt32 to SqlSingle)

將提供的 SqlInt32 結構轉換成 SqlSingleConverts the supplied SqlInt32 structure to SqlSingle.

Inequality(SqlSingle, SqlSingle) Inequality(SqlSingle, SqlSingle) Inequality(SqlSingle, SqlSingle) Inequality(SqlSingle, SqlSingle)

執行兩個 SqlSingle 參數的邏輯比對,以判斷它們是否不相等。Performs a logical comparison of the two SqlSingle parameters to determine whether they are not equal.

LessThan(SqlSingle, SqlSingle) LessThan(SqlSingle, SqlSingle) LessThan(SqlSingle, SqlSingle) LessThan(SqlSingle, SqlSingle)

執行兩個 SqlSingle 參數的邏輯比對,以判斷第一個參數是否小於第二個。Performs a logical comparison of the two SqlSingle parameters to determine whether the first is less than the second.

LessThanOrEqual(SqlSingle, SqlSingle) LessThanOrEqual(SqlSingle, SqlSingle) LessThanOrEqual(SqlSingle, SqlSingle) LessThanOrEqual(SqlSingle, SqlSingle)

執行兩個 SqlSingle 參數的邏輯比對,以判斷第一個參數是否小於或等於第二個。Performs a logical comparison of the two SqlSingle parameters to determine whether the first is less than or equal to the second.

Multiply(SqlSingle, SqlSingle) Multiply(SqlSingle, SqlSingle) Multiply(SqlSingle, SqlSingle) Multiply(SqlSingle, SqlSingle)

計算兩個指定的 SqlSingle 結構之乘積。Computes the product of the two specified SqlSingle structures.

Subtraction(SqlSingle, SqlSingle) Subtraction(SqlSingle, SqlSingle) Subtraction(SqlSingle, SqlSingle) Subtraction(SqlSingle, SqlSingle)

從第一個 SqlSingle 結構減去第二個結構。Subtracts the second SqlSingle structure from the first.

UnaryNegation(SqlSingle) UnaryNegation(SqlSingle) UnaryNegation(SqlSingle) UnaryNegation(SqlSingle)

否定指定的 Value 結構的 SqlSingleNegates the Value of the specified SqlSingle structure.

明確介面實作

IXmlSerializable.GetSchema() IXmlSerializable.GetSchema() IXmlSerializable.GetSchema() 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) IXmlSerializable.ReadXml(XmlReader) IXmlSerializable.ReadXml(XmlReader) 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) IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter)

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

適用於

另請參閱