SqlInt16 结构
定义
表示要在数据库中存储或检索的 16 位有符号整数。Represents a 16-bit signed integer to be stored in or retrieved from a database.
public value class SqlInt16 : IComparable, System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
public value class SqlInt16 : IComparable, System::Data::SqlTypes::INullable
public struct SqlInt16 : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
public struct SqlInt16 : IComparable, System.Data.SqlTypes.INullable
[System.Serializable]
public struct SqlInt16 : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlInt16 = struct
interface INullable
interface IXmlSerializable
type SqlInt16 = struct
interface INullable
[<System.Serializable>]
type SqlInt16 = struct
interface INullable
interface IXmlSerializable
Public Structure SqlInt16
Implements IComparable, INullable, IXmlSerializable
Public Structure SqlInt16
Implements IComparable, INullable
- 继承
- 属性
- 实现
构造函数
| SqlInt16(Int16) |
使用提供的短整型参数初始化 SqlInt16 结构的新实例。Initializes a new instance of the SqlInt16 structure using the supplied short integer parameter. |
字段
| MaxValue |
一个常数,它表示 SqlInt16 的最大可能值。A constant representing the largest possible value of a SqlInt16. |
| MinValue |
一个常数,它表示 SqlInt16 的最小可能值。A constant representing the smallest possible value of a SqlInt16. |
| Null |
表示可指派给 DBNull 结构的此实例的 SqlInt16。Represents a DBNull that can be assigned to this instance of the SqlInt16 structure. |
| Zero |
表示可分配给 Value 结构实例的 SqlInt16 属性的零值。Represents a zero value that can be assigned to the Value property of an instance of the SqlInt16 structure. |
属性
| IsNull |
指示此 SqlInt16 结构是否为 null。Indicates whether this SqlInt16 structure is null. |
| Value |
获取 SqlInt16 结构的此实例的值。Gets the value of this instance of SqlInt16 structure. 此属性为只读。This property is read-only. |
方法
| Add(SqlInt16, SqlInt16) |
计算两个 SqlInt16 操作数的和。Computes the sum of the two SqlInt16 operands. |
| BitwiseAnd(SqlInt16, SqlInt16) |
对其 SqlInt16 操作数执行按位 AND 运算。Computes the bitwise AND of its SqlInt16 operands. |
| BitwiseOr(SqlInt16, SqlInt16) |
对其两个 SqlInt16 操作数执行按位“或”计算。Computes the bitwise OR of its two SqlInt16 operands. |
| CompareTo(Object) |
将此 SqlInt16 实例与所提供的 Object 进行比较,并返回二者相对值的指示值。Compares this SqlInt16 instance to the supplied Object and returns an indication of their relative values. |
| CompareTo(SqlInt16) |
将此 SqlInt16 实例与所提供的 SqlInt16 进行比较,并返回二者相对值的指示值。Compares this SqlInt16 instance to the supplied SqlInt16 and returns an indication of their relative values. |
| Divide(SqlInt16, SqlInt16) |
将第一个 SqlInt16 操作数除以第二个操作数。Divides the first SqlInt16 operand by the second. |
| Equals(Object) |
将指定对象与 Value 对象的 SqlInt16 属性进行比较。Compares the specified object to the Value property of the SqlInt16 object. |
| Equals(SqlInt16, SqlInt16) |
对两个 SqlInt16 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two SqlInt16 structures to determine whether they are equal. |
| GetHashCode() |
返回此实例的哈希代码。Returns the hash code for this instance. |
| GetXsdType(XmlSchemaSet) |
返回指定的 XmlSchemaSet 的 XML 架构定义语言 (XSD)。Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet. |
| GreaterThan(SqlInt16, SqlInt16) |
对 SqlInt16 的两个实例进行比较,以确定第一个实例是否大于第二个实例。Compares two instances of SqlInt16 to determine whether the first is greater than the second. |
| GreaterThanOrEqual(SqlInt16, SqlInt16) |
对两个 SqlInt16 结构进行比较,以确定第一个结构是否大于或等于第二个结构。Compares two SqlInt16 structures to determine whether the first is greater than or equal to the second. |
| LessThan(SqlInt16, SqlInt16) |
对 SqlInt16 的两个实例进行比较,以确定第一个实例是否小于第二个实例。Compares two instances of SqlInt16 to determine whether the first is less than the second. |
| LessThanOrEqual(SqlInt16, SqlInt16) |
对两个 SqlInt16 结构进行比较,以确定第一个结构是否小于或等于第二个结构。Compares two SqlInt16 structures to determine whether the first is less than or equal to the second. |
| Mod(SqlInt16, SqlInt16) |
计算将其第一个 SqlInt16 操作数除以第二个操作数后所得的余数。Computes the remainder after dividing its first SqlInt16 operand by its second. |
| Modulus(SqlInt16, SqlInt16) |
将两个 SqlInt16 值相除,并返回余数。Divides two SqlInt16 values and returns the remainder. |
| Multiply(SqlInt16, SqlInt16) |
计算两个 SqlInt16 参数的乘积。Computes the product of the two SqlInt16 parameters. |
| NotEquals(SqlInt16, SqlInt16) |
对两个 SqlInt16 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two SqlInt16 structures to determine whether they are not equal. |
| OnesComplement(SqlInt16) |
~ 运算符对它的 SqlByte 操作数执行按位二进制反码运算。The ~ operator performs a bitwise one's complement operation on its SqlByte operand. |
| Parse(String) |
将数字的 String 表示形式转换为它的等效 16 位有符号整数。Converts the String representation of a number to its 16-bit signed integer equivalent. |
| Subtract(SqlInt16, SqlInt16) |
从第一个 SqlInt16 参数中减去第二个参数。Subtracts the second SqlInt16 parameter from the first. |
| ToSqlBoolean() |
将此 SqlInt16 结构转换为 SqlBoolean。Converts this SqlInt16 structure to SqlBoolean. |
| ToSqlByte() |
将此 SqlInt16 结构转换为 SqlByte。Converts this SqlInt16 structure to SqlByte. |
| ToSqlDecimal() |
将此 SqlInt16 结构转换为 SqlDecimal。Converts this SqlInt16 structure to SqlDecimal. |
| ToSqlDouble() |
将此 SqlInt16 结构转换为 SqlDouble。Converts this SqlInt16 structure to SqlDouble. |
| ToSqlInt32() |
将此 SqlInt16 结构转换为 SqlInt32。Converts this SqlInt16 structure to SqlInt32. |
| ToSqlInt64() |
将此 SqlInt16 结构转换为 SqlInt64。Converts this SqlInt16 structure to SqlInt64. |
| ToSqlMoney() |
将此 SqlInt16 结构转换为 SqlMoney。Converts this SqlInt16 structure to SqlMoney. |
| ToSqlSingle() |
将此 SqlInt16 结构转换为 SqlSingle。Converts this SqlInt16 structure to SqlSingle. |
| ToSqlString() |
将此 SqlInt16 结构转换为 SqlString。Converts this SqlInt16 structure to SqlString. |
| ToString() |
将 SqlInt16 结构转换为 String。Converts a SqlInt16 structure to String. |
| Xor(SqlInt16, SqlInt16) |
对提供的参数执行按位“异或”运算。Performs a bitwise exclusive-OR operation on the supplied parameters. |
运算符
| Addition(SqlInt16, SqlInt16) |
计算两个 SqlInt16 操作数的和。Computes the sum of the two SqlInt16 operands. |
| BitwiseAnd(SqlInt16, SqlInt16) |
对其 SqlInt16 操作数执行按位 AND 运算。Computes the bitwise AND of its SqlInt16 operands. |
| BitwiseOr(SqlInt16, SqlInt16) |
对其两个 SqlInt16 操作数执行按位“或”计算。Computes the bitwise OR of its two SqlInt16 operands. |
| Division(SqlInt16, SqlInt16) |
将第一个 SqlInt16 操作数除以第二个操作数。Divides the first SqlInt16 operand by the second. |
| Equality(SqlInt16, SqlInt16) |
对两个 SqlInt16 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two SqlInt16 structures to determine whether they are equal. |
| ExclusiveOr(SqlInt16, SqlInt16) |
对提供的参数执行按位“异或”运算。Performs a bitwise exclusive-OR operation on the supplied parameters. |
| Explicit(SqlBoolean to SqlInt16) |
将提供的 SqlBoolean 结构转换为 SqlInt16。Converts the supplied SqlBoolean structure to SqlInt16. |
| Explicit(SqlDecimal to SqlInt16) |
将提供的 SqlDecimal 结构转换为 SqlInt16。Converts the supplied SqlDecimal structure to SqlInt16. |
| Explicit(SqlDouble to SqlInt16) |
将提供的 SqlDouble 结构转换为 SqlInt16。Converts the supplied SqlDouble structure to SqlInt16. |
| Explicit(SqlInt16 to Int16) |
将提供的 SqlInt16 结构转换为短整型。Converts the supplied SqlInt16 structure to a short integer. |
| Explicit(SqlInt32 to SqlInt16) |
将提供的 SqlInt32 结构转换为 SqlInt16。Converts the supplied SqlInt32 structure to SqlInt16. |
| Explicit(SqlInt64 to SqlInt16) |
将提供的 SqlInt64 结构转换为 SqlInt16。Converts the supplied SqlInt64 structure to SqlInt16. |
| Explicit(SqlMoney to SqlInt16) |
将提供的 SqlMoney 结构转换为 SqlInt16。Converts the supplied SqlMoney structure to SqlInt16. |
| Explicit(SqlSingle to SqlInt16) |
将提供的 SqlSingle 结构转换为 SqlInt16。Converts the supplied SqlSingle structure to SqlInt16. |
| Explicit(SqlString to SqlInt16) |
将提供的 SqlString 对象转换为 SqlInt16。Converts the supplied SqlString object to SqlInt16. |
| GreaterThan(SqlInt16, SqlInt16) |
对 SqlInt16 的两个实例进行比较,以确定第一个实例是否大于第二个实例。Compares two instances of SqlInt16 to determine whether the first is greater than the second. |
| GreaterThanOrEqual(SqlInt16, SqlInt16) |
对两个 SqlInt16 结构进行比较,以确定第一个结构是否大于或等于第二个结构。Compares two SqlInt16 structures to determine whether the first is greater than or equal to the second. |
| Implicit(Int16 to SqlInt16) |
将提供的短整型转换为 SqlInt16。Converts the supplied short integer to SqlInt16. |
| Implicit(SqlByte to SqlInt16) |
将提供的 SqlByte 结构转换为 SqlInt16。Converts the supplied SqlByte structure to SqlInt16. |
| Inequality(SqlInt16, SqlInt16) |
对两个 SqlInt16 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two SqlInt16 structures to determine whether they are not equal. |
| LessThan(SqlInt16, SqlInt16) |
对 SqlInt16 的两个实例进行比较,以确定第一个实例是否小于第二个实例。Compares two instances of SqlInt16 to determine whether the first is less than the second. |
| LessThanOrEqual(SqlInt16, SqlInt16) |
对两个 SqlInt16 结构进行比较,以确定第一个结构是否小于或等于第二个结构。Compares two SqlInt16 structures to determine whether the first is less than or equal to the second. |
| Modulus(SqlInt16, SqlInt16) |
计算将其第一个 SqlInt16 操作数除以第二个操作数后所得的余数。Computes the remainder after dividing its first SqlInt16 operand by its second. |
| Multiply(SqlInt16, SqlInt16) |
计算两个 SqlInt16 参数的乘积。Computes the product of the two SqlInt16 parameters. |
| OnesComplement(SqlInt16) |
~ 运算符对它的 SqlByte 操作数执行按位二进制反码运算。The ~ operator performs a bitwise one's complement operation on its SqlByte operand. |
| Subtraction(SqlInt16, SqlInt16) |
从第一个 SqlInt16 参数中减去第二个参数。Subtracts the second SqlInt16 parameter from the first. |
| UnaryNegation(SqlInt16) |
一元负运算符对 Value 操作数的 SqlInt16 求反。The unary minus operator negates the Value of the SqlInt16 operand. |
显式接口实现
| 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. |