Nevron .NET Vision
Nevron.Diagram.Extensions Namespace / NDbfReader Class / ReadDbf Method / ReadDbf(Stream,Boolean,Boolean,Encoding) Method
The DBF data stream.
If true only the columns will be read and the data table will be empty (i.e. it will contain 0 rows.
Determines wheter to trim the strings.
Character encoding.


In This Topic
    ReadDbf(Stream,Boolean,Boolean,Encoding) Method
    In This Topic
    Reads an entire standard DBF file into a DataTable.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ReadDbf( _
       ByVal dbfStream As System.IO.Stream, _
       ByVal readColumnsOnly As System.Boolean, _
       ByVal trimStrings As System.Boolean, _
       ByVal encoding As System.Text.Encoding _
    ) As System.Data.DataTable
    'Usage
     
    
    Dim dbfStream As System.IO.Stream
    Dim readColumnsOnly As System.Boolean
    Dim trimStrings As System.Boolean
    Dim encoding As System.Text.Encoding
    Dim value As System.Data.DataTable
     
    value = NDbfReader.ReadDbf(dbfStream, readColumnsOnly, trimStrings, encoding)
    public static System.Data.DataTable ReadDbf( 
       System.IO.Stream dbfStream,
       System.bool readColumnsOnly,
       System.bool trimStrings,
       System.Text.Encoding encoding
    )

    Parameters

    dbfStream
    The DBF data stream.
    readColumnsOnly
    If true only the columns will be read and the data table will be empty (i.e. it will contain 0 rows.
    trimStrings
    Determines wheter to trim the strings.
    encoding
    Character encoding.
    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