SqlSingle SqlSingle SqlSingle SqlSingle Struct

Definition

表示要存储在数据库中或从数据库中检索的浮点数,范围在 -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
[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
Inheritance
Attributes
SerializableAttribute
Implements

Remarks

映射到 SQL Server 实型数据类型。Maps to the SQL Server real data type. 有关详情,请参阅System.Data.SqlTypesFor more information, see System.Data.SqlTypes.

Constructors

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.

Fields

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.

Properties

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.

Methods

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 结构转换为 SqlBoolean Converts this SqlSingle structure to SqlBoolean.

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

将此 SqlSingle 结构转换为 SqlByte Converts this SqlSingle structure to SqlByte.

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

将此 SqlSingle 结构转换为 SqlDecimal Converts this SqlSingle structure to SqlDecimal.

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

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

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

将此 SqlSingle 结构转换为 SqlInt16 Converts this SqlSingle structure to SqlInt16.

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

将此 SqlSingle 结构转换为 SqlInt32 Converts this SqlSingle structure to SqlInt32.

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

将此 SqlSingle 结构转换为 SqlInt64 Converts this SqlSingle structure to SqlInt64.

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

将此 SqlSingle 结构转换为 SqlMoney Converts this SqlSingle structure to SqlMoney.

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

将此 SqlSingle 结构转换为 SqlString Converts this SqlSingle structure to SqlString.

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

将此 SqlSingle 结构转换为 String Converts this SqlSingle structure to String.

Operators

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 转换为 SqlSingle This 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 参数转换为 SqlSingle Converts the supplied SqlDouble parameter to SqlSingle.

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

将指定的 SqlSingle 结构转换为浮点型。 Converts the specified SqlSingle structure to float.

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

将提供的 SqlString 参数转换为 SqlSingle Converts 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 equl to the second.

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

将指定的浮点值转换为 SqlSingle Converts the specified floating point value to SqlSingle.

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

将提供的 SqlMoney 结构转换为 SqlSingle Converts the supplied SqlMoney structure to SqlSingle.

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

将提供的 SqlInt64 参数转换为 SqlSingle Converts the supplied SqlInt64 parameter to SqlSingle.

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

此隐式运算符将 SqlByte 参数转换为 SqlSingle This 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 参数转换为 SqlSingle Converts the supplied SqlInt16 parameter to SqlSingle.

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

将提供的 SqlDecimal 参数转换为 SqlSingle Converts the supplied SqlDecimal parameter to SqlSingle.

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

将提供的 SqlInt32 结构转换为 SqlSingle Converts 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 结构的 SqlSingle 求反。 Negates the Value of the specified SqlSingle structure.

Explicit Interface Implementations

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.

Applies to

See Also