FileHelperEngineTReadStreamAsDT Method (TextReader, Int32) |
Note: This API is now obsolete.
Read the records of the stream and fill a DataTable with them
Namespace:
FileHelpers
Assembly:
FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax[ObsoleteAttribute("You must use ReadStream(...).ToDataTable<T>() instead.")]
public DataTable ReadStreamAsDT(
TextReader reader,
int maxRecords
)
<ObsoleteAttribute("You must use ReadStream(...).ToDataTable<T>() instead.")>
Public Function ReadStreamAsDT (
reader As TextReader,
maxRecords As Integer
) As DataTable
Parameters
- reader
- Type: System.IOTextReader
The stream with the source records. - maxRecords
- Type: SystemInt32
The max number of records to read. Int32.MaxValue or -1 to read all records.
Return Value
Type:
DataTableThe DataTable with the read records.
Implements
IFileHelperEngineTReadStreamAsDT(TextReader, Int32)
See Also