<PackageReference Include="System.Data.SqlClient" Version="4.7.0-preview7.19362.9" />

SqlInt16

public struct SqlInt16 : INullable, IComparable
Represents a 16-bit signed integer to be stored in or retrieved from a database.
public static readonly SqlInt16 MaxValue

A constant representing the largest possible value of a SqlInt16.

public static readonly SqlInt16 MinValue

A constant representing the smallest possible value of a SqlInt16.

public static readonly SqlInt16 Null

Represents a DBNull that can be assigned to this instance of the SqlInt16 structure.

public static readonly SqlInt16 Zero

Represents a zero value that can be assigned to the Value property of an instance of the SqlInt16 structure.

public bool IsNull { get; }

Indicates whether this SqlInt16 structure is null.

public short Value { get; }

Gets the value of this instance of SqlInt16 structure. This property is read-only.

public SqlInt16(short value)

Initializes a new instance of the SqlInt16 structure using the supplied short integer parameter.

public static SqlInt16 Add(SqlInt16 x, SqlInt16 y)

Computes the sum of the two SqlInt16 operands.

public static SqlInt16 BitwiseAnd(SqlInt16 x, SqlInt16 y)

Computes the bitwise AND of its SqlInt16 operands.

public static SqlInt16 BitwiseOr(SqlInt16 x, SqlInt16 y)

Computes the bitwise OR of its two SqlInt16 operands.

public static SqlInt16 Divide(SqlInt16 x, SqlInt16 y)

Divides the first SqlInt16 operand by the second.

public static SqlBoolean Equals(SqlInt16 x, SqlInt16 y)

Performs a logical comparison of two SqlInt16 structures to determine whether they are equal.

Compares two instances of SqlInt16 to determine whether the first is greater than the second.

Compares two SqlInt16 structures to determine whether the first is greater than or equal to the second.

public static SqlBoolean LessThan(SqlInt16 x, SqlInt16 y)

Compares two instances of SqlInt16 to determine whether the first is less than the second.

Compares two SqlInt16 structures to determine whether the first is less than or equal to the second.

public static SqlInt16 Mod(SqlInt16 x, SqlInt16 y)

Computes the remainder after dividing its first SqlInt16 operand by its second.

public static SqlInt16 Modulus(SqlInt16 x, SqlInt16 y)

Divides two SqlInt16 values and returns the remainder.

public static SqlInt16 Multiply(SqlInt16 x, SqlInt16 y)

Computes the product of the two SqlInt16 parameters.

public static SqlBoolean NotEquals(SqlInt16 x, SqlInt16 y)

Performs a logical comparison of two SqlInt16 structures to determine whether they are not equal.

public static SqlInt16 OnesComplement(SqlInt16 x)

The ~ operator performs a bitwise one&#39;s complement operation on its SqlByte operand.

public static SqlInt16 op_Addition(SqlInt16 x, SqlInt16 y)

Computes the sum of the two SqlInt16 operands.

Computes the bitwise AND of its SqlInt16 operands.

public static SqlInt16 op_BitwiseOr(SqlInt16 x, SqlInt16 y)

Computes the bitwise OR of its two SqlInt16 operands.

public static SqlInt16 op_Division(SqlInt16 x, SqlInt16 y)

Divides the first SqlInt16 operand by the second.

Performs a logical comparison of two SqlInt16 structures to determine whether they are equal.

Performs a bitwise exclusive-OR operation on the supplied parameters.

public static SqlInt16 op_Explicit(SqlBoolean x)

Converts the supplied SqlBoolean structure to SqlInt16.

public static SqlInt16 op_Explicit(SqlDecimal x)

Converts the supplied SqlDecimal structure to SqlInt16.

public static SqlInt16 op_Explicit(SqlDouble x)

Converts the supplied SqlDouble structure to SqlInt16.

public static short op_Explicit(SqlInt16 x)

Converts the supplied SqlInt16 structure to a short integer.

public static SqlInt16 op_Explicit(SqlInt32 x)

Converts the supplied SqlInt32 structure to SqlInt16.

public static SqlInt16 op_Explicit(SqlInt64 x)

Converts the supplied SqlInt64 structure to SqlInt16.

public static SqlInt16 op_Explicit(SqlMoney x)

Converts the supplied SqlMoney structure to SqlInt16.

public static SqlInt16 op_Explicit(SqlSingle x)

Converts the supplied SqlSingle structure to SqlInt16.

public static SqlInt16 op_Explicit(SqlString x)

Converts the supplied SqlString object to SqlInt16.

Compares two instances of SqlInt16 to determine whether the first is greater than the second.

Compares two SqlInt16 structures to determine whether the first is greater than or equal to the second.

public static SqlInt16 op_Implicit(SqlByte x)

Converts the supplied SqlByte structure to SqlInt16.

public static SqlInt16 op_Implicit(short x)

Converts the supplied short integer to SqlInt16.

Performs a logical comparison of two SqlInt16 structures to determine whether they are not equal.

Compares two instances of SqlInt16 to determine whether the first is less than the second.

Compares two SqlInt16 structures to determine whether the first is less than or equal to the second.

public static SqlInt16 op_Modulus(SqlInt16 x, SqlInt16 y)

Computes the remainder after dividing its first SqlInt16 operand by its second.

public static SqlInt16 op_Multiply(SqlInt16 x, SqlInt16 y)

Computes the product of the two SqlInt16 parameters.

The ~ operator performs a bitwise one&#39;s complement operation on its SqlByte operand.

Subtracts the second SqlInt16 parameter from the first.

The unary minus operator negates the Value of the SqlInt16 operand.

public static SqlInt16 Parse(string s)

Converts the String representation of a number to its 16-bit signed integer equivalent.

public static SqlInt16 Subtract(SqlInt16 x, SqlInt16 y)

Subtracts the second SqlInt16 parameter from the first.

public static SqlInt16 Xor(SqlInt16 x, SqlInt16 y)

Performs a bitwise exclusive-OR operation on the supplied parameters.

public int CompareTo(SqlInt16 value)

Compares this SqlInt16 instance to the supplied SqlInt16 and returns an indication of their relative values.

public int CompareTo(object value)

Compares this SqlInt16 instance to the supplied Object and returns an indication of their relative values.

Converts this SqlInt16 structure to SqlBoolean.

public SqlByte ToSqlByte()

Converts this SqlInt16 structure to SqlByte.

Converts this SqlInt16 structure to SqlDecimal.

Converts this SqlInt16 structure to SqlDouble.

Converts this SqlInt16 structure to SqlInt32.

Converts this SqlInt16 structure to SqlInt64.

Converts this SqlInt16 structure to SqlMoney.

Converts this SqlInt16 structure to SqlSingle.

Converts this SqlInt16 structure to SqlString.