SqlDecimal 结构
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示介于 - 10^38 +1 和 10^38 - 1 之间的数值,精度和小数位数固定。
public value class SqlDecimal : IComparable, System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
public value class SqlDecimal : IComparable, IEquatable<System::Data::SqlTypes::SqlDecimal>, System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
public value class SqlDecimal : IComparable, System::Data::SqlTypes::INullable
public struct SqlDecimal : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
public struct SqlDecimal : IComparable, IEquatable<System.Data.SqlTypes.SqlDecimal>, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
public struct SqlDecimal : IComparable, System.Data.SqlTypes.INullable
[System.Serializable]
public struct SqlDecimal : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlDecimal = struct
interface INullable
interface IXmlSerializable
type SqlDecimal = struct
interface INullable
[<System.Serializable>]
type SqlDecimal = struct
interface INullable
interface IXmlSerializable
Public Structure SqlDecimal
Implements IComparable, INullable, IXmlSerializable
Public Structure SqlDecimal
Implements IComparable, IEquatable(Of SqlDecimal), INullable, IXmlSerializable
Public Structure SqlDecimal
Implements IComparable, INullable
- 继承
- 属性
- 实现
SqlDecimal 具有与其相应的 .NET Framework Decimal 数据类型不同的基础数据结构。 Decimal 没有精度的概念。 它使用 3 个 DWORD(12 字节)来存储实际数据,因此最大规模为 28。 数据范围为 -79,228,162,514,264,337,593,543,950,335 到 79,228,162,514,264,337,593,543,950,335。 SqlDecimal 具有精度和小数位数。 它使用 4 个无符号 4 字节整数来存储实际数据,因此最大精度和小数位数为 38。 数据范围为 - 10^38 +1 到 10^38 - 1。
Sql |
使用提供的参数初始化 SqlDecimal 结构的新实例。 |
Sql |
使用提供的参数初始化 SqlDecimal 结构的新实例。 |
Sql |
使用提供的 Decimal 值初始化 SqlDecimal 结构的新实例。 |
Sql |
使用提供的双参数初始化 SqlDecimal 结构的新实例。 |
Sql |
使用提供的整数值初始化 SqlDecimal 结构的新实例。 |
Sql |
使用提供的长整数值初始化 SqlDecimal 结构的新实例。 |
Max |
一个常量,表示 Precision 属性的最大可能值。 |
Max |
一个常量,表示 Scale 属性的最大值。 |
Max |
一个常量,表示 SqlDecimal 结构的最大值。 |
Min |
一个常量,表示 SqlDecimal 结构的最小值。 |
Null |
表示可分配给 SqlDecimal 类的此实例的 DBNull。 |
Bin |
获取此 SqlDecimal 结构的二进制表示形式作为字节数组。 |
Data |
获取此 SqlDecimal 结构的二进制表示形式作为整数数组。 |
Is |
指示此 SqlDecimal 结构是否为 null。 |
Is |
指示此 SqlDecimal 结构的 Value 是否大于零。 |
Precision |
获取用于表示 Value 属性的最大位数。 |
Scale |
获取解析 Value 的小数位数。 |
Value |
获取 SqlDecimal 结构的值。 此属性为只读。 |
IXml |
此成员支持 .NET Framework 基础结构,不应直接从代码使用。 |
IXml |
此成员支持 .NET Framework 基础结构,不应直接从代码使用。 |
IXml |
此成员支持 .NET Framework 基础结构,不应直接从代码使用。 |
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |