GetValue(Int32, Int64, Int32) method

Returns a substring of the value of the specified column as an Object.

Syntax
Visual Basic

Public Function GetValue( _
   ByVal ordinal As Integer, _
   ByVal index As Long, _
   ByVal length As Integer _
) As Object
C#

public object GetValue(
   int ordinal,
   long index,
   int length
);
Parameters
  • ordinal   An ordinal number indicating the column from which the value is obtained. The numbering is zero-based.

  • index   A zero-based index of the substring of the value to be obtained.

  • length   The length of the substring of the value to be obtained.

Return value

The substring value is returned as an object.

Remarks

This method returns DBNull for NULL database columns.

See also