Click or drag to resize
FixedWidthDataReader Class
Provides a datasource for the .Net Framework SqlBulkCopy class which allows data to be rapidly imported into SQL Server.
Inheritance Hierarchy
SystemObject
  DataStreams.CommonDataReaderBase
    DataStreams.FixedWidthFixedWidthDataReader

Namespace: DataStreams.FixedWidth
Assembly: DataStreams (in DataStreams.dll) Version: 5.20.0.0
Syntax
public sealed class FixedWidthDataReader : DataReaderBase

The FixedWidthDataReader type exposes the following members.

Constructors
  NameDescription
Public methodFixedWidthDataReader(TextReader)
Constructs a FixedWidthDataReader object using a TextReader object as the data source. Uses a comma as the column delimiter.
Public methodFixedWidthDataReader(String)
Creates a FixedWidthDataReader object using a file as the data source. Uses a comma as the column delimiter and Default as the encoding.
Public methodFixedWidthDataReader(Stream, Encoding)
Constructs a FixedWidthDataReader object using a Stream object as the data source. Uses a comma as the column delimiter.
Top
Methods
  NameDescription
Public methodClose
Closes and releases all related resources.
(Inherited from DataReaderBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodStatic memberParse
Creates a FixedWidthDataReader object using a string of data as the source. Uses Default as the encoding.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyColumns
Collection of columns to include in the source data.
Top
Events
  NameDescription
Public eventReadRecord
This event is raised after each record has been read and before the values have been converted to the destination type. This event can be used to modify values in a record, add values to a record, or skip a record entirely.
(Inherited from DataReaderBase.)
Top
See Also