You receive a compiler error message when you call the Dispose(BooleanParameter) method of the SqlCeDataReader object in a SQL Server 2005 Mobile Edition project (912432)
The information in this article applies to:
- Microsoft SQL Server 2005 Mobile Edition
SYMPTOMSIn a Microsoft SQL Server 2005 Mobile Edition (SQL Server Mobile) project, you call the Dispose( BooleanParameter) method of the SqlCeDataReader object. When you do this, you receive the following compiler error message: 'System.Data.Common.DbDataReader.Dispose(bool)' is inaccessible due to its protection level Note BooleanParameter is a placeholder for a parameter of the Boolean type that you pass to the Dispose method. CAUSEThis problem occurs because the access modifier of the Dispose(BooleanParameter) method of the SqlCeDataReader object is set to Protected. You cannot call the method directly in runtime.RESOLUTIONTo resolve this problem, use the nonparameter version of the Dispose method of the SqlCeDataReader object.
Modification Type: | Major | Last Reviewed: | 1/31/2006 |
---|
Keywords: | kbprb KB912432 kbAudITPRO kbAudDeveloper |
---|
|