VistaDB 6
VistaDB.Provider Namespace / VistaDBDataReader Class / GetTextReader Method
Retrieves data as a System.IO.TextReader.


In This Topic
    GetTextReader Method
    In This Topic
    Retrieves data as a System.IO.TextReader.
    Syntax
    'Declaration
     
    
    Public Function GetTextReader( _
       ByVal ordinal As System.Integer _
    ) As System.IO.TextReader
    'Usage
     
    
    Dim instance As VistaDBDataReader
    Dim ordinal As System.Integer
    Dim value As System.IO.TextReader
     
    value = instance.GetTextReader(ordinal)
    public System.IO.TextReader GetTextReader( 
       System.int ordinal
    )

    Parameters

    ordinal
    Retrieves data as a System.IO.TextReader.

    Return Value

    The returned object.
    Exceptions
    ExceptionDescription
    The connection drops or is closed during the data retrieval. -or- The System.Data.Common.DbDataReader is closed during the data retrieval. -or- There is no data ready to be read (for example, the first System.Data.Common.DbDataReader.Read hasn't been called, or returned false). -or- Tried to read a previously-read column in sequential mode. -or- There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.
    Trying to read a column that does not exist.
    The returned type was not one of the following types: char, nchar, ntext, nvarchar, text, or varchar.
    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