SqlInt16 SqlInt16 SqlInt16 SqlInt16 Struct

定義

表示要在資料庫中儲存或擷取的 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
[System.Serializable]
public struct SqlInt16 : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlInt16 = struct
    interface INullable
    interface IXmlSerializable
Public Structure SqlInt16
Implements IComparable, INullable, IXmlSerializable
繼承
屬性
實作

建構函式

SqlInt16(Int16) SqlInt16(Int16) SqlInt16(Int16) SqlInt16(Int16)

使用提供的短整數 (Short Integer) 參數,初始化 SqlInt16 結構的新執行個體。Initializes a new instance of the SqlInt16 structure using the supplied short integer parameter.

欄位

MaxValue MaxValue MaxValue MaxValue

常數,表示 SqlInt16 的最大可能值。A constant representing the largest possible value of a SqlInt16.

MinValue MinValue MinValue MinValue

常數,表示 SqlInt16 的最小可能值。A constant representing the smallest possible value of a SqlInt16.

Null Null Null Null

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

Zero Zero Zero Zero

表示零值,其可以指派至 Value 結構之執行個體的 SqlInt16 屬性。Represents a zero value that can be assigned to the Value property of an instance of the SqlInt16 structure.

屬性

IsNull IsNull IsNull IsNull

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

Value Value Value Value

取得這個 SqlInt16 結構之執行個體的值。Gets the value of this instance of SqlInt16 structure. 這個屬性是唯讀的。This property is read-only.

方法

Add(SqlInt16, SqlInt16) Add(SqlInt16, SqlInt16) Add(SqlInt16, SqlInt16) Add(SqlInt16, SqlInt16)

計算兩個 SqlInt16 運算元的總和。Computes the sum of the two SqlInt16 operands.

BitwiseAnd(SqlInt16, SqlInt16) BitwiseAnd(SqlInt16, SqlInt16) BitwiseAnd(SqlInt16, SqlInt16) BitwiseAnd(SqlInt16, SqlInt16)

計算其 SqlInt16 運算元的位元 AND 運算。Computes the bitwise AND of its SqlInt16 operands.

BitwiseOr(SqlInt16, SqlInt16) BitwiseOr(SqlInt16, SqlInt16) BitwiseOr(SqlInt16, SqlInt16) BitwiseOr(SqlInt16, SqlInt16)

執行其兩個 SqlInt16 運算元的位元 OR 運算。Computes the bitwise OR of its two SqlInt16 operands.

CompareTo(SqlInt16) CompareTo(SqlInt16) CompareTo(SqlInt16) CompareTo(SqlInt16)

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

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

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

Divide(SqlInt16, SqlInt16) Divide(SqlInt16, SqlInt16) Divide(SqlInt16, SqlInt16) Divide(SqlInt16, SqlInt16)

用第二個 SqlInt16 運算元除第一個運算元。Divides the first SqlInt16 operand by the second.

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

比較指定的物件與 Value 物件的 SqlInt16 屬性。Compares the specified object to the Value property of the SqlInt16 object.

Equals(SqlInt16, SqlInt16) Equals(SqlInt16, SqlInt16) Equals(SqlInt16, SqlInt16) Equals(SqlInt16, SqlInt16)

執行兩個 SqlInt16 結構的邏輯比對,以判斷它們是否相等。Performs a logical comparison of two SqlInt16 structures to determine whether they are equal.

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

傳回這個執行個體的雜湊碼。Returns 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(SqlInt16, SqlInt16) GreaterThan(SqlInt16, SqlInt16) GreaterThan(SqlInt16, SqlInt16) GreaterThan(SqlInt16, SqlInt16)

比較 SqlInt16 的兩個執行個體,判斷第一個執行個體是否大於第二個。Compares two instances of SqlInt16 to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlInt16, SqlInt16) GreaterThanOrEqual(SqlInt16, SqlInt16) GreaterThanOrEqual(SqlInt16, SqlInt16) GreaterThanOrEqual(SqlInt16, SqlInt16)

比較兩個 SqlInt16 結構,判斷第一個結構是否大於或等於第二個。Compares two SqlInt16 structures to determine whether the first is greater than or equal to the second.

LessThan(SqlInt16, SqlInt16) LessThan(SqlInt16, SqlInt16) LessThan(SqlInt16, SqlInt16) LessThan(SqlInt16, SqlInt16)

比較 SqlInt16 的兩個執行個體,判斷第一個執行個體是否小於第二個。Compares two instances of SqlInt16 to determine whether the first is less than the second.

LessThanOrEqual(SqlInt16, SqlInt16) LessThanOrEqual(SqlInt16, SqlInt16) LessThanOrEqual(SqlInt16, SqlInt16) LessThanOrEqual(SqlInt16, SqlInt16)

比較兩個 SqlInt16 結構,判斷第一個結構是否小於或等於第二個。Compares two SqlInt16 structures to determine whether the first is less than or equal to the second.

Mod(SqlInt16, SqlInt16) Mod(SqlInt16, SqlInt16) Mod(SqlInt16, SqlInt16) Mod(SqlInt16, SqlInt16)

在將餘數的第一個 SqlInt16 運算元除以它的第二個運算元之後計算餘數。Computes the remainder after dividing its first SqlInt16 operand by its second.

Modulus(SqlInt16, SqlInt16) Modulus(SqlInt16, SqlInt16) Modulus(SqlInt16, SqlInt16) Modulus(SqlInt16, SqlInt16)

為兩個 SqlInt16 值進行除法運算,並傳回餘數。Divides two SqlInt16 values and returns the remainder.

Multiply(SqlInt16, SqlInt16) Multiply(SqlInt16, SqlInt16) Multiply(SqlInt16, SqlInt16) Multiply(SqlInt16, SqlInt16)

計算兩個 SqlInt16 參數的乘積。Computes the product of the two SqlInt16 parameters.

NotEquals(SqlInt16, SqlInt16) NotEquals(SqlInt16, SqlInt16) NotEquals(SqlInt16, SqlInt16) NotEquals(SqlInt16, SqlInt16)

執行兩個 SqlInt16 結構的邏輯比對,以判斷它們是否不相等。Performs a logical comparison of two SqlInt16 structures to determine whether they are not equal.

OnesComplement(SqlInt16) OnesComplement(SqlInt16) OnesComplement(SqlInt16) OnesComplement(SqlInt16)

~ 運算子在其 SqlByte 運算元上執行位元一進位補數作業。The ~ operator performs a bitwise one's complement operation on its SqlByte operand.

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

將數字的 String 表示轉換成它的對等 16 位元帶正負號的整數。Converts the String representation of a number to its 16-bit signed integer equivalent.

Subtract(SqlInt16, SqlInt16) Subtract(SqlInt16, SqlInt16) Subtract(SqlInt16, SqlInt16) Subtract(SqlInt16, SqlInt16)

從第一個 SqlInt16 參數減去第二個參數。Subtracts the second SqlInt16 parameter from the first.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ToSqlSingle() ToSqlSingle() ToSqlSingle() ToSqlSingle()

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

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

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

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

SqlInt16 結構轉換成 StringConverts a SqlInt16 structure to String.

Xor(SqlInt16, SqlInt16) Xor(SqlInt16, SqlInt16) Xor(SqlInt16, SqlInt16) Xor(SqlInt16, SqlInt16)

在提供的參數上執行位元 Exclusive-OR 運算。Performs a bitwise exclusive-OR operation on the supplied parameters.

運算子

Addition(SqlInt16, SqlInt16) Addition(SqlInt16, SqlInt16) Addition(SqlInt16, SqlInt16) Addition(SqlInt16, SqlInt16)

計算兩個 SqlInt16 運算元的總和。Computes the sum of the two SqlInt16 operands.

BitwiseAnd(SqlInt16, SqlInt16) BitwiseAnd(SqlInt16, SqlInt16) BitwiseAnd(SqlInt16, SqlInt16) BitwiseAnd(SqlInt16, SqlInt16)

計算其 SqlInt16 運算元的位元 AND 運算。Computes the bitwise AND of its SqlInt16 operands.

BitwiseOr(SqlInt16, SqlInt16) BitwiseOr(SqlInt16, SqlInt16) BitwiseOr(SqlInt16, SqlInt16) BitwiseOr(SqlInt16, SqlInt16)

執行其兩個 SqlInt16 運算元的位元 OR 運算。Computes the bitwise OR of its two SqlInt16 operands.

Division(SqlInt16, SqlInt16) Division(SqlInt16, SqlInt16) Division(SqlInt16, SqlInt16) Division(SqlInt16, SqlInt16)

用第二個 SqlInt16 運算元除第一個運算元。Divides the first SqlInt16 operand by the second.

Equality(SqlInt16, SqlInt16) Equality(SqlInt16, SqlInt16) Equality(SqlInt16, SqlInt16) Equality(SqlInt16, SqlInt16)

執行兩個 SqlInt16 結構的邏輯比對,以判斷它們是否相等。Performs a logical comparison of two SqlInt16 structures to determine whether they are equal.

ExclusiveOr(SqlInt16, SqlInt16) ExclusiveOr(SqlInt16, SqlInt16) ExclusiveOr(SqlInt16, SqlInt16) ExclusiveOr(SqlInt16, SqlInt16)

在提供的參數上執行位元 Exclusive-OR 運算。Performs a bitwise exclusive-OR operation on the supplied parameters.

Explicit(SqlString to SqlInt16) Explicit(SqlString to SqlInt16) Explicit(SqlString to SqlInt16) Explicit(SqlString to SqlInt16)

將提供的 SqlString 物件轉換成 SqlInt16Converts the supplied SqlString object to SqlInt16.

Explicit(SqlSingle to SqlInt16) Explicit(SqlSingle to SqlInt16) Explicit(SqlSingle to SqlInt16) Explicit(SqlSingle to SqlInt16)

將提供的 SqlSingle 結構轉換成 SqlInt16Converts the supplied SqlSingle structure to SqlInt16.

Explicit(SqlMoney to SqlInt16) Explicit(SqlMoney to SqlInt16) Explicit(SqlMoney to SqlInt16) Explicit(SqlMoney to SqlInt16)

將提供的 SqlMoney 結構轉換成 SqlInt16Converts the supplied SqlMoney structure to SqlInt16.

Explicit(SqlInt64 to SqlInt16) Explicit(SqlInt64 to SqlInt16) Explicit(SqlInt64 to SqlInt16) Explicit(SqlInt64 to SqlInt16)

將提供的 SqlInt64 結構轉換成 SqlInt16Converts the supplied SqlInt64 structure to SqlInt16.

Explicit(SqlInt32 to SqlInt16) Explicit(SqlInt32 to SqlInt16) Explicit(SqlInt32 to SqlInt16) Explicit(SqlInt32 to SqlInt16)

將提供的 SqlInt32 結構轉換成 SqlInt16Converts the supplied SqlInt32 structure to SqlInt16.

Explicit(SqlInt16 to Int16) Explicit(SqlInt16 to Int16) Explicit(SqlInt16 to Int16) Explicit(SqlInt16 to Int16)

將提供的 SqlInt16 結構轉換成短整數。Converts the supplied SqlInt16 structure to a short integer.

Explicit(SqlDouble to SqlInt16) Explicit(SqlDouble to SqlInt16) Explicit(SqlDouble to SqlInt16) Explicit(SqlDouble to SqlInt16)

將提供的 SqlDouble 結構轉換成 SqlInt16Converts the supplied SqlDouble structure to SqlInt16.

Explicit(SqlDecimal to SqlInt16) Explicit(SqlDecimal to SqlInt16) Explicit(SqlDecimal to SqlInt16) Explicit(SqlDecimal to SqlInt16)

將提供的 SqlDecimal 結構轉換成 SqlInt16Converts the supplied SqlDecimal structure to SqlInt16.

Explicit(SqlBoolean to SqlInt16) Explicit(SqlBoolean to SqlInt16) Explicit(SqlBoolean to SqlInt16) Explicit(SqlBoolean to SqlInt16)

將提供的 SqlBoolean 結構轉換成 SqlInt16Converts the supplied SqlBoolean structure to SqlInt16.

GreaterThan(SqlInt16, SqlInt16) GreaterThan(SqlInt16, SqlInt16) GreaterThan(SqlInt16, SqlInt16) GreaterThan(SqlInt16, SqlInt16)

比較 SqlInt16 的兩個執行個體,判斷第一個執行個體是否大於第二個。Compares two instances of SqlInt16 to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlInt16, SqlInt16) GreaterThanOrEqual(SqlInt16, SqlInt16) GreaterThanOrEqual(SqlInt16, SqlInt16) GreaterThanOrEqual(SqlInt16, SqlInt16)

比較兩個 SqlInt16 結構,判斷第一個結構是否大於或等於第二個。Compares two SqlInt16 structures to determine whether the first is greater than or equal to the second.

Implicit(SqlByte to SqlInt16) Implicit(SqlByte to SqlInt16) Implicit(SqlByte to SqlInt16) Implicit(SqlByte to SqlInt16)

將提供的 SqlByte 結構轉換成 SqlInt16Converts the supplied SqlByte structure to SqlInt16.

Implicit(Int16 to SqlInt16) Implicit(Int16 to SqlInt16) Implicit(Int16 to SqlInt16) Implicit(Int16 to SqlInt16)

將提供的短整數轉換成 SqlInt16Converts the supplied short integer to SqlInt16.

Inequality(SqlInt16, SqlInt16) Inequality(SqlInt16, SqlInt16) Inequality(SqlInt16, SqlInt16) Inequality(SqlInt16, SqlInt16)

執行兩個 SqlInt16 結構的邏輯比對,以判斷它們是否不相等。Performs a logical comparison of two SqlInt16 structures to determine whether they are not equal.

LessThan(SqlInt16, SqlInt16) LessThan(SqlInt16, SqlInt16) LessThan(SqlInt16, SqlInt16) LessThan(SqlInt16, SqlInt16)

比較 SqlInt16 的兩個執行個體,判斷第一個執行個體是否小於第二個。Compares two instances of SqlInt16 to determine whether the first is less than the second.

LessThanOrEqual(SqlInt16, SqlInt16) LessThanOrEqual(SqlInt16, SqlInt16) LessThanOrEqual(SqlInt16, SqlInt16) LessThanOrEqual(SqlInt16, SqlInt16)

比較兩個 SqlInt16 結構,判斷第一個結構是否小於或等於第二個。Compares two SqlInt16 structures to determine whether the first is less than or equal to the second.

Modulus(SqlInt16, SqlInt16) Modulus(SqlInt16, SqlInt16) Modulus(SqlInt16, SqlInt16) Modulus(SqlInt16, SqlInt16)

在將餘數的第一個 SqlInt16 運算元除以它的第二個運算元之後計算餘數。Computes the remainder after dividing its first SqlInt16 operand by its second.

Multiply(SqlInt16, SqlInt16) Multiply(SqlInt16, SqlInt16) Multiply(SqlInt16, SqlInt16) Multiply(SqlInt16, SqlInt16)

計算兩個 SqlInt16 參數的乘積。Computes the product of the two SqlInt16 parameters.

OnesComplement(SqlInt16) OnesComplement(SqlInt16) OnesComplement(SqlInt16) OnesComplement(SqlInt16)

~ 運算子在其 SqlByte 運算元上執行位元一進位補數作業。The ~ operator performs a bitwise one's complement operation on its SqlByte operand.

Subtraction(SqlInt16, SqlInt16) Subtraction(SqlInt16, SqlInt16) Subtraction(SqlInt16, SqlInt16) Subtraction(SqlInt16, SqlInt16)

從第一個 SqlInt16 參數減去第二個參數。Subtracts the second SqlInt16 parameter from the first.

UnaryNegation(SqlInt16) UnaryNegation(SqlInt16) UnaryNegation(SqlInt16) UnaryNegation(SqlInt16)

一元減號運算子將 Value 運算元的 SqlInt16 變成相反值。The unary minus operator negates the Value of the SqlInt16 operand.

明確介面實作

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.

適用於

另請參閱