Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NullMappingDataReader.GetValue Method

Return the value of the specified field, null if value equals DBNull.Value

[Visual Basic]
Public Overridable Sub GetValue( _
   ByVal i As Integer _
) _
    Implements IDataRecord.GetValue
[C#]
public virtual object GetValue(
   int i
);

Parameters

i
The index of the field to find.

Return Value

The Object which will contain the field value upon return. Returns null if value equals DBNull.Value

Implements

IDataRecord.GetValue

Exceptions

Exception Type Condition
IndexOutOfRangeException The index passed was outside the range of 0 through FieldCount.

See Also

NullMappingDataReader Class | Spring.Data.Support Namespace