IDataRecord.GetFloat Method
.NET Framework 4
Gets the single-precision floating point number of the specified field.
Assembly: System.Data (in System.Data.dll)
Parameters
- i
- Type: System.Int32
The index of the field to find.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException |
The index passed was outside the range of 0 through FieldCount. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Specified cast in invalid
The name of this method and the others could be GetAsFloat, because this method doesn't get a float.
$0$0
$0
$0GetDouble gets a SQL float. GetSqlFloat could have been the name for it, but then it wouldn't convey the output type and it would confuse things further with the CLR SqlDouble type which is supposed to represent a SQL float. It's all very confusing really and I like to think that the people that made this bit have left Microsoft for jobs in the Bush administration.
$0$0
$0
$0This will help with your headache: http://msdn.microsoft.com/en-us/library/ms131092.aspx$0
$0
- 10/14/2010
- LukePuplett