Provides a way of reading a forward-only stream of data rows from a data source. This class cannot be inherited.
For a list of all members of this type, see SqlCeDataReader Members.
[Visual Basic] NotInheritable Public Class SqlCeDataReader Inherits MarshalByRefObject Implements IDataReader, IDisposable, IDataRecord [C#] public sealed class SqlCeDataReader : MarshalByRefObject, IDataReader, IDisposable, IDataRecord [C++] public __gc __sealed class SqlCeDataReader : public MarshalByRefObject, IDataReader, IDisposable, IDataRecord [JScript] public class SqlCeDataReader extends MarshalByRefObject implements IDataReader, IDisposable, IDataRecord
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
While the SqlCeDataReader is in use, the associated SqlCeConnection is busy serving the SqlCeDataReader. In this state, you can create multiple readers in the same connection.
Changes made to a result set by another process or thread while the data is being read may be visible to the user of the SqlCeDataReader; however, the precise behavior is dependent on when these occur.
IsClosed and RecordsAffected are the only properties that you can call after the SqlCeDataReader is closed. Although the RecordsAffected property can be accessed at any time while the SqlCeDataReader exists, always call Close before returning the value of RecordsAffected to ensure an accurate return value.
Platforms: .NET Compact Framework
Assembly: System.Data.Sqlserverce (in System.Data.Sqlserverce.dll)