SqlByte 结构

定义

表示要存储在数据库中或从数据库中检索的 8 位无符号整数,此整数在 0 到 255 范围内。Represents an 8-bit unsigned integer, in the range of 0 through 255, to be stored in or retrieved from a database.

public value class SqlByte : IComparable, System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
[System.Serializable]
public struct SqlByte : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlByte = struct
    interface INullable
    interface IXmlSerializable
Public Structure SqlByte
Implements IComparable, INullable, IXmlSerializable
继承
SqlByte
属性
实现

构造函数

SqlByte(Byte)

使用指定的字节值初始化 SqlByte 结构的新实例。Initializes a new instance of the SqlByte structure using the specified byte value.

字段

MaxValue

一个常数,它表示 SqlByte 的最大可能值。A constant representing the largest possible value of a SqlByte.

MinValue

一个常数,它表示 SqlByte 的最小可能值。A constant representing the smallest possible value of a SqlByte.

Null

表示可指派给 DBNull 结构的此实例的 SqlByteRepresents a DBNull that can be assigned to this instance of the SqlByte structure.

Zero

表示可分配给 Value 结构实例的 SqlByte 属性的零值。Represents a zero value that can be assigned to the Value property of an instance of the SqlByte structure.

属性

IsNull

获取一个布尔值,该值指示此 SqlByte 结构是否为 null。Gets a Boolean value that indicates whether this SqlByte structure is null.

Value

获取 SqlByte 结构的值。Gets the value of the SqlByte structure. 此属性是只读的。This property is read-only.

方法

Add(SqlByte, SqlByte)

计算两个指定的 SqlByte 结构的和。Computes the sum of the two specified SqlByte structures.

BitwiseAnd(SqlByte, SqlByte)

对其 SqlByte 操作数执行按位 AND 运算。Computes the bitwise AND of its SqlByte operands.

BitwiseOr(SqlByte, SqlByte)

对其两个 SqlByte 操作数执行按位“或”计算。Computes the bitwise OR of its two SqlByte operands.

CompareTo(Object)

将此实例与所提供的 Object 进行比较,并返回二者相对值的指示值。Compares this instance to the supplied Object and returns an indication of their relative values.

CompareTo(SqlByte)

将此实例与所提供的 SqlByte 对象进行比较,并返回其相对值的指示值。Compares this instance to the supplied SqlByte object and returns an indication of their relative values.

Divide(SqlByte, SqlByte)

将其第一个 SqlByte 操作数除以其第二个操作数。Divides its first SqlByte operand by its second.

Equals(Object)

将提供的 Object 参数与 Value 对象的 SqlByte 属性进行比较。Compares the supplied Object parameter to the Value property of the SqlByte object.

Equals(SqlByte, SqlByte)

对两个 SqlByte 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two SqlByte 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(SqlByte, SqlByte)

SqlByte 的两个实例进行比较,以确定第一个实例是否大于第二个实例。Compares two instances of SqlByte to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlByte, SqlByte)

对两个 SqlByte 结构进行比较,以确定第一个结构是否大于或等于第二个结构。Compares two SqlByte structures to determine whether the first is greater than or equal to the second.

LessThan(SqlByte, SqlByte)

SqlByte 的两个实例进行比较,以确定第一个实例是否小于第二个实例。Compares two instances of SqlByte to determine whether the first is less than the second.

LessThanOrEqual(SqlByte, SqlByte)

SqlByte 的两个实例进行比较,以确定第一个实例是否小于或等于第二个实例。Compares two instances of SqlByte to determine whether the first is less than or equal to the second.

Mod(SqlByte, SqlByte)

计算将其第一个 SqlByte 操作数除以第二个操作数后所得的余数。Computes the remainder after dividing its first SqlByte operand by its second.

Modulus(SqlByte, SqlByte)

将两个 SqlByte 值相除,并返回余数。Divides two SqlByte values and returns the remainder.

Multiply(SqlByte, SqlByte)

计算两个 SqlByte 操作数的乘积。Computes the product of the two SqlByte operands.

NotEquals(SqlByte, SqlByte)

SqlByte 的两个实例进行比较,以确定它们是否不相等。Compares two instances of SqlByte to determine whether they are not equal.

OnesComplement(SqlByte)

二进制反码运算符对其 SqlByte 操作数执行按位二进制反码运算。The ones complement operator performs a bitwise one's complement operation on its SqlByte operand.

Parse(String)

将数字的 String 表示形式转换为它的等效 8 位无符号整数。Converts the String representation of a number to its 8-bit unsigned integer equivalent.

Subtract(SqlByte, SqlByte)

从第一个 SqlByte 操作数中减去第二个操作数。Subtracts the second SqlByte operand from the first.

ToSqlBoolean()

将此 SqlByte 结构转换为 SqlBooleanConverts this SqlByte structure to SqlBoolean.

ToSqlDecimal()

将此 SqlByte 结构转换为 SqlDecimalConverts this SqlByte structure to SqlDecimal.

ToSqlDouble()

将此 SqlByte 结构转换为 SqlDoubleConverts this SqlByte structure to SqlDouble.

ToSqlInt16()

将此 SqlByte 结构转换为 SqlInt16Converts this SqlByte structure to SqlInt16.

ToSqlInt32()

将此 SqlByte 转换为 SqlInt32Converts this SqlByte to SqlInt32.

ToSqlInt64()

将此 SqlByte 结构转换为 SqlInt64Converts this SqlByte structure to SqlInt64.

ToSqlMoney()

将此 SqlByte 结构转换为 SqlMoneyConverts this SqlByte structure to SqlMoney.

ToSqlSingle()

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

ToSqlString()

SqlByte 的此实例转换为 SqlStringConverts this instance of SqlByte to SqlString.

ToString()

将此 SqlByte 结构转换为 StringConverts this SqlByte structure to a String.

Xor(SqlByte, SqlByte)

对提供的参数执行按位“异或”运算。Performs a bitwise exclusive-OR operation on the supplied parameters.

操作员

Addition(SqlByte, SqlByte)

计算两个指定的 SqlByte 结构的和。Computes the sum of the two specified SqlByte structures.

BitwiseAnd(SqlByte, SqlByte)

对其 SqlByte 操作数执行按位 AND 运算。Computes the bitwise AND of its SqlByte operands.

BitwiseOr(SqlByte, SqlByte)

对其两个 SqlByte 操作数执行按位“或”计算。Computes the bitwise OR of its two SqlByte operands.

Division(SqlByte, SqlByte)

将其第一个 SqlByte 操作数除以其第二个操作数。Divides its first SqlByte operand by its second.

Equality(SqlByte, SqlByte)

对两个 SqlByte 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two SqlByte structures to determine whether they are equal.

ExclusiveOr(SqlByte, SqlByte)

对提供的参数执行按位“异或”运算。Performs a bitwise exclusive-OR operation on the supplied parameters.

Explicit(SqlBoolean to SqlByte)

SqlBoolean 参数转换为 SqlByteConverts the SqlBoolean parameter to a SqlByte.

Explicit(SqlByte to Byte)

将提供的 SqlByte 结构转换为字节。Converts the supplied SqlByte structure to a byte.

Explicit(SqlDecimal to SqlByte)

将提供的 SqlDecimal 转换为 SqlByteConverts the supplied SqlDecimal to SqlByte.

Explicit(SqlDouble to SqlByte)

将提供的 SqlDouble 转换为 SqlByteConverts the supplied SqlDouble to SqlByte.

Explicit(SqlInt16 to SqlByte)

SqlInt16 参数转换为 SqlByteConverts the SqlInt16 parameter to a SqlByte.

Explicit(SqlInt32 to SqlByte)

将提供的 SqlInt32 转换为 SqlByteConverts the supplied SqlInt32 to SqlByte.

Explicit(SqlInt64 to SqlByte)

将提供的 SqlInt64 转换为 SqlByteConverts the supplied SqlInt64 to SqlByte.

Explicit(SqlMoney to SqlByte)

SqlMoney 参数转换为 SqlByteConverts the SqlMoney parameter to a SqlByte.

Explicit(SqlSingle to SqlByte)

将提供的 SqlSingle 结构转换为 SqlByteConverts the supplied SqlSingle structure to SqlByte.

Explicit(SqlString to SqlByte)

将提供的 SqlString 转换为 SqlByteConverts the supplied SqlString to SqlByte.

GreaterThan(SqlByte, SqlByte)

SqlByte 的两个实例进行比较,以确定第一个实例是否大于第二个实例。Compares two instances of SqlByte to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlByte, SqlByte)

SqlByte 的两个实例进行比较,以确定第一个实例是否大于或等于第二个实例。Compares two instances of SqlByte to determine whether the first is greater than or equal to the second.

Implicit(Byte to SqlByte)

将提供的字节值转换为 SqlByteConverts the supplied byte value to a SqlByte.

Inequality(SqlByte, SqlByte)

SqlByte 的两个实例进行比较,以确定它们是否不相等。Compares two instances of SqlByte to determine whether they are not equal.

LessThan(SqlByte, SqlByte)

SqlByte 的两个实例进行比较,以确定第一个实例是否小于第二个实例。Compares two instances of SqlByte to determine whether the first is less than the second.

LessThanOrEqual(SqlByte, SqlByte)

SqlByte 的两个实例进行比较,以确定第一个实例是否小于或等于第二个实例。Compares two instances of SqlByte to determine whether the first is less than or equal to the second.

Modulus(SqlByte, SqlByte)

计算将其第一个 SqlByte 操作数除以第二个操作数后所得的余数。Computes the remainder after dividing its first SqlByte operand by its second.

Multiply(SqlByte, SqlByte)

计算两个 SqlByte 操作数的乘积。Computes the product of the two SqlByte operands.

OnesComplement(SqlByte)

二进制反码运算符对其 SqlByte 操作数执行按位二进制反码运算。The ones complement operator performs a bitwise one's complement operation on its SqlByte operand.

Subtraction(SqlByte, SqlByte)

从第一个 SqlByte 操作数中减去第二个操作数。Subtracts the second SqlByte operand from the first.

显式界面实现

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.

适用于

另请参阅