DataReaderExtensions.GetDouble(DbDataReader, String) Metoda

Definicja

Pobiera wartość określonej kolumny jako liczbę zmiennoprzecinkową o podwójnej precyzji.

public:
[System::Runtime::CompilerServices::Extension]
 static double GetDouble(System::Data::Common::DbDataReader ^ reader, System::String ^ name);
public static double GetDouble (this System.Data.Common.DbDataReader reader, string name);
static member GetDouble : System.Data.Common.DbDataReader * string -> double
<Extension()>
Public Function GetDouble (reader As DbDataReader, name As String) As Double

Parametry

reader
DbDataReader

Czytnik danych umożliwiający pobranie wartości kolumny z.

name
String

Nazwa kolumny.

Zwraca

Wartość określonej kolumny.

Wyjątki

Określona obsada jest nieprawidłowa.

Określona nazwa nie jest prawidłową nazwą kolumny.

Dotyczy

Zobacz też