SqlInt32 SqlInt32 SqlInt32 SqlInt32 Struct

定義

表示要在資料庫中儲存或擷取的 32 位元帶正負號的整數 (Signed Integer)。Represents a 32-bit signed integer to be stored in or retrieved from a database.

public value class SqlInt32 : IComparable, System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
[System.Serializable]
public struct SqlInt32 : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlInt32 = struct
    interface INullable
    interface IXmlSerializable
Public Structure SqlInt32
Implements IComparable, INullable, IXmlSerializable
繼承
屬性
實作

建構函式

SqlInt32(Int32) SqlInt32(Int32) SqlInt32(Int32) SqlInt32(Int32)

使用提供的整數值,初始化 SqlInt32 結構的新執行個體。Initializes a new instance of the SqlInt32 structure using the supplied integer value.

欄位

MaxValue MaxValue MaxValue MaxValue

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

MinValue MinValue MinValue MinValue

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

Null Null Null Null

表示 DBNull,可以指派至 SqlInt32 類別的執行個體。Represents a DBNull that can be assigned to this instance of the SqlInt32 class.

Zero Zero Zero Zero

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

屬性

IsNull IsNull IsNull IsNull

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

Value Value Value Value

取得這個 SqlInt32 結構的值。Gets the value of this SqlInt32 structure. 這個屬性是唯讀的。This property is read-only.

方法

Add(SqlInt32, SqlInt32) Add(SqlInt32, SqlInt32) Add(SqlInt32, SqlInt32) Add(SqlInt32, SqlInt32)

計算兩個指定的 SqlInt32 結構之總和。Computes the sum of the two specified SqlInt32 structures.

BitwiseAnd(SqlInt32, SqlInt32) BitwiseAnd(SqlInt32, SqlInt32) BitwiseAnd(SqlInt32, SqlInt32) BitwiseAnd(SqlInt32, SqlInt32)

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

BitwiseOr(SqlInt32, SqlInt32) BitwiseOr(SqlInt32, SqlInt32) BitwiseOr(SqlInt32, SqlInt32) BitwiseOr(SqlInt32, SqlInt32)

計算指定的 SqlInt32 結構之位元 OR 運算。Computes the bitwise OR of the specified SqlInt32 structures.

CompareTo(SqlInt32) CompareTo(SqlInt32) CompareTo(SqlInt32) CompareTo(SqlInt32)

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

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

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

Divide(SqlInt32, SqlInt32) Divide(SqlInt32, SqlInt32) Divide(SqlInt32, SqlInt32) Divide(SqlInt32, SqlInt32)

用第二個 SqlInt32 參數除第一個參數。Divides the first SqlInt32 parameter from the second.

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

將提供的物件參數與 Value 物件的 SqlInt32 屬性相比較。Compares the supplied object parameter to the Value property of the SqlInt32 object.

Equals(SqlInt32, SqlInt32) Equals(SqlInt32, SqlInt32) Equals(SqlInt32, SqlInt32) Equals(SqlInt32, SqlInt32)

執行兩個 SqlInt32 參數的邏輯比對,以判斷它們是否相等。Performs a logical comparison of the two SqlInt32 parameters 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(SqlInt32, SqlInt32) GreaterThan(SqlInt32, SqlInt32) GreaterThan(SqlInt32, SqlInt32) GreaterThan(SqlInt32, SqlInt32)

比較兩個 SqlInt32 參數,判斷第一個參數是否大於第二個。Compares the two SqlInt32 parameters to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlInt32, SqlInt32) GreaterThanOrEqual(SqlInt32, SqlInt32) GreaterThanOrEqual(SqlInt32, SqlInt32) GreaterThanOrEqual(SqlInt32, SqlInt32)

比較兩個 SqlInt32 參數,判斷第一個參數是否大於或等於第二個。Compares the two SqlInt32 parameters to determine whether the first is greater than or equal to the second.

LessThan(SqlInt32, SqlInt32) LessThan(SqlInt32, SqlInt32) LessThan(SqlInt32, SqlInt32) LessThan(SqlInt32, SqlInt32)

比較兩個 SqlInt32 參數,判斷第一個參數是否小於第二個。Compares the two SqlInt32 parameters to determine whether the first is less than the second.

LessThanOrEqual(SqlInt32, SqlInt32) LessThanOrEqual(SqlInt32, SqlInt32) LessThanOrEqual(SqlInt32, SqlInt32) LessThanOrEqual(SqlInt32, SqlInt32)

比較兩個 SqlInt32 參數,判斷第一個參數是否小於或等於第二個。Compares the two SqlInt32 parameters to determine whether the first is less than or equal to the second.

Mod(SqlInt32, SqlInt32) Mod(SqlInt32, SqlInt32) Mod(SqlInt32, SqlInt32) Mod(SqlInt32, SqlInt32)

在將第一個 SqlInt32 參數除以第二個參數之後計算餘數。Computes the remainder after dividing the first SqlInt32 parameter by the second.

Modulus(SqlInt32, SqlInt32) Modulus(SqlInt32, SqlInt32) Modulus(SqlInt32, SqlInt32) Modulus(SqlInt32, SqlInt32)

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

Multiply(SqlInt32, SqlInt32) Multiply(SqlInt32, SqlInt32) Multiply(SqlInt32, SqlInt32) Multiply(SqlInt32, SqlInt32)

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

NotEquals(SqlInt32, SqlInt32) NotEquals(SqlInt32, SqlInt32) NotEquals(SqlInt32, SqlInt32) NotEquals(SqlInt32, SqlInt32)

執行兩個 SqlInt32 參數的邏輯比對,以判斷它們是否不相等。Performs a logical comparison of the two SqlInt32 parameters to determine whether they are not equal.

OnesComplement(SqlInt32) OnesComplement(SqlInt32) OnesComplement(SqlInt32) OnesComplement(SqlInt32)

在指定的 SqlInt32 結構上執行位元一進位補數運算。Performs a bitwise one's complement operation on the specified SqlInt32 structure.

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

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

Subtract(SqlInt32, SqlInt32) Subtract(SqlInt32, SqlInt32) Subtract(SqlInt32, SqlInt32) Subtract(SqlInt32, SqlInt32)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Xor(SqlInt32, SqlInt32) Xor(SqlInt32, SqlInt32) Xor(SqlInt32, SqlInt32) Xor(SqlInt32, SqlInt32)

在指定的 SqlInt32 結構上執行位元 Exclusive-OR 運算。Performs a bitwise exclusive-OR operation on the specified SqlInt32 structures.

運算子

Addition(SqlInt32, SqlInt32) Addition(SqlInt32, SqlInt32) Addition(SqlInt32, SqlInt32) Addition(SqlInt32, SqlInt32)

計算兩個指定的 SqlInt32 結構之總和。Computes the sum of the two specified SqlInt32 structures.

BitwiseAnd(SqlInt32, SqlInt32) BitwiseAnd(SqlInt32, SqlInt32) BitwiseAnd(SqlInt32, SqlInt32) BitwiseAnd(SqlInt32, SqlInt32)

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

BitwiseOr(SqlInt32, SqlInt32) BitwiseOr(SqlInt32, SqlInt32) BitwiseOr(SqlInt32, SqlInt32) BitwiseOr(SqlInt32, SqlInt32)

計算指定的 SqlInt32 結構之位元 OR 運算。Computes the bitwise OR of the specified SqlInt32 structures.

Division(SqlInt32, SqlInt32) Division(SqlInt32, SqlInt32) Division(SqlInt32, SqlInt32) Division(SqlInt32, SqlInt32)

用第二個 SqlInt32 參數除第一個參數。Divides the first SqlInt32 parameter from the second.

Equality(SqlInt32, SqlInt32) Equality(SqlInt32, SqlInt32) Equality(SqlInt32, SqlInt32) Equality(SqlInt32, SqlInt32)

執行兩個 SqlInt32 參數的邏輯比對,以判斷它們是否相等。Performs a logical comparison of the two SqlInt32 parameters to determine whether they are equal.

ExclusiveOr(SqlInt32, SqlInt32) ExclusiveOr(SqlInt32, SqlInt32) ExclusiveOr(SqlInt32, SqlInt32) ExclusiveOr(SqlInt32, SqlInt32)

在指定的 SqlInt32 結構上執行位元 Exclusive-OR 運算。Performs a bitwise exclusive-OR operation on the specified SqlInt32 structures.

Explicit(SqlString to SqlInt32) Explicit(SqlString to SqlInt32) Explicit(SqlString to SqlInt32) Explicit(SqlString to SqlInt32)

將提供的 SqlString 物件轉換成 SqlInt32Converts the supplied SqlString object to SqlInt32.

Explicit(SqlSingle to SqlInt32) Explicit(SqlSingle to SqlInt32) Explicit(SqlSingle to SqlInt32) Explicit(SqlSingle to SqlInt32)

將提供的 SqlSingle 轉換成 SqlInt32Converts the supplied SqlSingle to SqlInt32.

Explicit(SqlMoney to SqlInt32) Explicit(SqlMoney to SqlInt32) Explicit(SqlMoney to SqlInt32) Explicit(SqlMoney to SqlInt32)

將提供的 SqlMoney 結構轉換成 SqlInt32Converts the supplied SqlMoney structure to SqlInt32.

Explicit(SqlInt64 to SqlInt32) Explicit(SqlInt64 to SqlInt32) Explicit(SqlInt64 to SqlInt32) Explicit(SqlInt64 to SqlInt32)

將提供的 SqlInt64 轉換成 SqlInt32Converts the supplied SqlInt64 to SqlInt32.

Explicit(SqlDouble to SqlInt32) Explicit(SqlDouble to SqlInt32) Explicit(SqlDouble to SqlInt32) Explicit(SqlDouble to SqlInt32)

將提供的 SqlDouble 轉換成 SqlInt32Converts the supplied SqlDouble to SqlInt32.

Explicit(SqlDecimal to SqlInt32) Explicit(SqlDecimal to SqlInt32) Explicit(SqlDecimal to SqlInt32) Explicit(SqlDecimal to SqlInt32)

將提供的 SqlDecimal 結構轉換成 SqlInt32Converts the supplied SqlDecimal structure to SqlInt32.

Explicit(SqlBoolean to SqlInt32) Explicit(SqlBoolean to SqlInt32) Explicit(SqlBoolean to SqlInt32) Explicit(SqlBoolean to SqlInt32)

將提供的 SqlBoolean 轉換成 SqlInt32Converts the supplied SqlBoolean to SqlInt32.

Explicit(SqlInt32 to Int32) Explicit(SqlInt32 to Int32) Explicit(SqlInt32 to Int32) Explicit(SqlInt32 to Int32)

將提供的 SqlInt32 結構轉換成整數。Converts the supplied SqlInt32 structure to an integer.

GreaterThan(SqlInt32, SqlInt32) GreaterThan(SqlInt32, SqlInt32) GreaterThan(SqlInt32, SqlInt32) GreaterThan(SqlInt32, SqlInt32)

比較兩個 SqlInt32 參數,判斷第一個參數是否大於第二個。Compares the two SqlInt32 parameters to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlInt32, SqlInt32) GreaterThanOrEqual(SqlInt32, SqlInt32) GreaterThanOrEqual(SqlInt32, SqlInt32) GreaterThanOrEqual(SqlInt32, SqlInt32)

比較兩個 SqlInt32 參數,判斷第一個參數是否大於或等於第二個。Compares the two SqlInt32 parameters to determine whether the first is greater than or equal to the second.

Implicit(Int32 to SqlInt32) Implicit(Int32 to SqlInt32) Implicit(Int32 to SqlInt32) Implicit(Int32 to SqlInt32)

將提供的整數轉換成 SqlInt32Converts the supplied integer to SqlInt32.

Implicit(SqlByte to SqlInt32) Implicit(SqlByte to SqlInt32) Implicit(SqlByte to SqlInt32) Implicit(SqlByte to SqlInt32)

將提供的 SqlByte 屬性轉換成 SqlInt32Converts the supplied SqlByte property to SqlInt32.

Implicit(SqlInt16 to SqlInt32) Implicit(SqlInt16 to SqlInt32) Implicit(SqlInt16 to SqlInt32) Implicit(SqlInt16 to SqlInt32)

將提供的 SqlInt16 轉換成 SqlInt32Converts the supplied SqlInt16 to SqlInt32.

Inequality(SqlInt32, SqlInt32) Inequality(SqlInt32, SqlInt32) Inequality(SqlInt32, SqlInt32) Inequality(SqlInt32, SqlInt32)

執行兩個 SqlInt32 參數的邏輯比對,以判斷它們是否不相等。Performs a logical comparison of the two SqlInt32 parameters to determine whether they are not equal.

LessThan(SqlInt32, SqlInt32) LessThan(SqlInt32, SqlInt32) LessThan(SqlInt32, SqlInt32) LessThan(SqlInt32, SqlInt32)

比較兩個 SqlInt32 參數,判斷第一個參數是否小於第二個。Compares the two SqlInt32 parameters to determine whether the first is less than the second.

LessThanOrEqual(SqlInt32, SqlInt32) LessThanOrEqual(SqlInt32, SqlInt32) LessThanOrEqual(SqlInt32, SqlInt32) LessThanOrEqual(SqlInt32, SqlInt32)

比較兩個 SqlInt32 參數,判斷第一個參數是否小於或等於第二個。Compares the two SqlInt32 parameters to determine whether the first is less than or equal to the second.

Modulus(SqlInt32, SqlInt32) Modulus(SqlInt32, SqlInt32) Modulus(SqlInt32, SqlInt32) Modulus(SqlInt32, SqlInt32)

在將第一個 SqlInt32 參數除以第二個參數之後計算餘數。Computes the remainder after dividing the first SqlInt32 parameter by the second.

Multiply(SqlInt32, SqlInt32) Multiply(SqlInt32, SqlInt32) Multiply(SqlInt32, SqlInt32) Multiply(SqlInt32, SqlInt32)

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

OnesComplement(SqlInt32) OnesComplement(SqlInt32) OnesComplement(SqlInt32) OnesComplement(SqlInt32)

在指定的 SqlInt32 結構上執行位元一進位補數運算。Performs a bitwise one's complement operation on the specified SqlInt32 structure.

Subtraction(SqlInt32, SqlInt32) Subtraction(SqlInt32, SqlInt32) Subtraction(SqlInt32, SqlInt32) Subtraction(SqlInt32, SqlInt32)

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

UnaryNegation(SqlInt32) UnaryNegation(SqlInt32) UnaryNegation(SqlInt32) UnaryNegation(SqlInt32)

Value 運算元的 SqlInt32 變成相反值。Negates the Value of the SqlInt32 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.

適用於

另請參閱