SqlDataReader.GetSqlDouble(Int32) 方法

定義

取得指定的資料行值做為 SqlDoubleGets the value of the specified column as a SqlDouble.

public:
 System::Data::SqlTypes::SqlDouble GetSqlDouble(int i);
public System.Data.SqlTypes.SqlDouble GetSqlDouble (int i);
member this.GetSqlDouble : int -> System.Data.SqlTypes.SqlDouble
Public Function GetSqlDouble (i As Integer) As SqlDouble

參數

i
Int32

以零為基底的資料行序數。The zero-based column ordinal.

傳回

表示為 SqlDouble 的資料行值。The value of the column expressed as a SqlDouble.

備註

不會執行任何轉換;因此,抓取的資料必須已經是雙精確度浮點數,否則會產生例外狀況。No conversions are performed; therefore, the data retrieved must already be a double-precision floating-point number, or an exception is generated.

適用於

另請參閱