Метод ExecuteReader
Executes the CommandText against the Connection and builds an IDataReader.
Пространство имен: Microsoft.ReportingServices.DataProcessing
Сборки: Microsoft.ReportingServices.SharePoint.UI.WebParts (в Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
Microsoft.ReportingServices.Interfaces (в Microsoft.ReportingServices.Interfaces.dll)
Синтаксис
'Декларация
Function ExecuteReader ( _
behavior As CommandBehavior _
) As IDataReader
'Применение
Dim instance As IDbCommand
Dim behavior As CommandBehavior
Dim returnValue As IDataReader
returnValue = instance.ExecuteReader(behavior)
IDataReader ExecuteReader(
CommandBehavior behavior
)
IDataReader^ ExecuteReader(
CommandBehavior behavior
)
abstract ExecuteReader :
behavior:CommandBehavior -> IDataReader
function ExecuteReader(
behavior : CommandBehavior
) : IDataReader
Параметры
- behavior
Тип: Microsoft.ReportingServices.DataProcessing. . :: . .CommandBehavior
The index of the field for which to retrieve properties.
Возвращаемое значение
Тип: Microsoft.ReportingServices.DataProcessing. . :: . .IDataReader
An IDataReader object.
Замечания
The caller must call the Open method of the Connection property.
When the CommandType property is set to StoredProcedure, the CommandText property should be set to the name of the stored procedure. The command executes this stored procedure when you call ExecuteReader.
The IDataReader supports a special mode that enables large binary values to be read efficiently. For more information, see the "SequentialAccess Setting for CommandBehavior" in your .NET Framework documentation.
While the IDataReader is in use, the associated IDbConnection is busy serving the IDataReader. While in this state, no other operations can be performed on the IDbConnection other than closing it.
См. также