次の方法で共有


SqlInt16 から Int16 への変換

指定した SqlInt16 構造体を短整数に変換します。

returnValue = SqlInt16.op_Explicit(x)
[C#]
public static explicit operator short(SqlInt16x);
[C++]
public: static short op_Explicit();
[JScript]
returnValue = Int16(x);

[Visual Basic] Visual Basic では、この型で定義されている型変換を使用することができます。ただし、独自に定義することはできません。

[JScript] JScript では、この型で定義されている型変換を使用することができます。ただし、独自に定義することはできません。

引数 [Visual Basic, JScript]

  • x
    SqlInt16 構造体。

パラメータ [C#]

  • x
    SqlInt16 構造体。

戻り値

SqlInt16 パラメータの Value と等しい値を持つ短整数。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

SqlInt16 構造体 | SqlInt16 メンバ | System.Data.SqlTypes 名前空間