次の方法で共有


SqlDataReader.GetSqlValue メソッド

基になる SqlDbType Variant の内部表現である Object を取得します。

Public Function GetSqlValue( _
   ByVal i As Integer _) As Object
[C#]
public object GetSqlValue(inti);
[C++]
public: Object* GetSqlValue(inti);
[JScript]
public function GetSqlValue(
   i : int) : Object;

パラメータ

  • i
    列の 0 から始まる序数。

戻り値

基になる SqlDbType Variant の内部表現である Object

解説

GetSqlValue は、ネイティブの SQL Server 型を使用してデータを返します。.NET Framework 型を使用してデータを取得する方法の詳細については、 GetValue のトピックを参照してください。

必要条件

プラットフォーム: 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 名前空間