dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleArrayDataReader Class / GetChars Method
Zero-based ordinal of the OBJECT TYPE property. Ignored when array consists of elements with type other than OBJECT TYPE.
The index within the field where the read operation is to begin.
The buffer into which to read the stream of bytes.
The index within the buffer where the write operation is to begin.
The maximum length to copy into the buffer.

In This Topic
    GetChars Method (OracleArrayDataReader)
    In This Topic
    If the array consists of OBJECT TYPE elements, reads a stream of characters from the specified property of the current array element, otherwise, reads a stream of characters from the current array element.
    Syntax
    'Declaration
     
    Public Function GetChars( _
       ByVal i As Integer, _
       ByVal fieldoffset As Long, _
       ByVal buffer() As Char, _
       ByVal bufferoffset As Integer, _
       ByVal length As Integer _
    ) As Long
    public long GetChars( 
       int i,
       long fieldoffset,
       char[] buffer,
       int bufferoffset,
       int length
    )

    Parameters

    i
    Zero-based ordinal of the OBJECT TYPE property. Ignored when array consists of elements with type other than OBJECT TYPE.
    fieldoffset
    The index within the field where the read operation is to begin.
    buffer
    The buffer into which to read the stream of bytes.
    bufferoffset
    The index within the buffer where the write operation is to begin.
    length
    The maximum length to copy into the buffer.

    Return Value

    The actual number of bytes read.
    Remarks
    If the array consists of OBJECT TYPE elements and i is equal or more than FieldCount, or it is less than zero, System.ArgumentOutOfRangeException is thrown.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also