指定した列の値を SqlInt16 として取得します。
Public Function GetSqlInt16( _
ByVal i As Integer _) As SqlInt16
[C#]
public SqlInt16 GetSqlInt16(inti);
[C++]
public: SqlInt16 GetSqlInt16(inti);
[JScript]
public function GetSqlInt16(
i : int) : SqlInt16;
パラメータ
- i
列の 0 から始まる序数。
戻り値
SqlInt16 。
解説
変換は実行されません。そのため、取得するデータは 16 ビット符号付き整数である必要があります。16 ビット符号付き整数でない場合は、例外が生成されます。
必要条件
プラットフォーム: 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
参照
SqlDataReader クラス | SqlDataReader メンバ | System.Data.SqlClient 名前空間