Send feedback on this topic.
Teradata.Client.Provider
GetChars(Int32) Method



Teradata.Client.Provider Namespace > TdDataReader Class > GetChars Method : GetChars(Int32) Method
Column ordinal (see TdDataReader.GetOrdinal).
Gets the value of the specified field (column) as a Char[].
Syntax
'Declaration
 
Public Overloads Function GetChars( _
   ByVal ordinal As Integer _
) As Char()
'Usage
 
Dim instance As TdDataReader
Dim ordinal As Integer
Dim value() As Char
 
value = instance.GetChars(ordinal)
public char[] GetChars( 
   int ordinal
)
public:
array<char>^ GetChars( 
   int ordinal
) 

Parameters

ordinal
Column ordinal (see TdDataReader.GetOrdinal).

Return Value

Returns the value of the specified field represented as a Char[] type.
Exceptions
ExceptionDescription
ordinal is less than zero or ordinal is equal to or greater than TdDataReader.FieldCount.
The field cannot be converted into System.String. A null field will result in an exception.
CommandBehavior is set to SchemaOnly, or there is no data for the row or column, or preceding columns are no longer accessible.
The TdDataReader is closed.
The Advanced SQL Engine returned an error, or .NET Data Provider for Teradata detected an error.
Remarks
use this method to retrieve columns of type CHAR, VARCHAR or CLOB.
Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdDataReader Class
TdDataReader Members
Overload List