Интерфейс IDbCommand

Represents a statement that is executed while an open connection to a data source exists.

Пространство имен:  Microsoft.ReportingServices.DataProcessing
Сборки:   Microsoft.ReportingServices.SharePoint.UI.WebParts (в Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (в Microsoft.ReportingServices.Interfaces.dll)

Синтаксис

'Декларация
Public Interface IDbCommand _
    Inherits IDisposable
'Применение
Dim instance As IDbCommand
public interface IDbCommand : IDisposable
public interface class IDbCommand : IDisposable
type IDbCommand =  
    interface
        interface IDisposable
    end
public interface IDbCommand extends IDisposable

Тип IDbCommand обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство CommandText Gets or sets the text command to run against the data source.
Открытое свойство CommandTimeout Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
Открытое свойство CommandType Indicates or specifies how the CommandText property is interpreted (as text, a stored procedure, etc.).
Открытое свойство Parameters Gets the IDataParameterCollection.
Открытое свойство Transaction Gets or sets the transaction in which the Command object of a SQL Server Reporting Services data provider executes.

В начало

Методы

  Имя Описание
Открытый метод Cancel Attempts to cancel the execution of an IDbCommand.
Открытый метод CreateParameter Creates a new instance of an IDataParameter object.
Открытый метод Dispose (Производный от IDisposable.)
Открытый метод ExecuteReader Executes the CommandText against the Connection and builds an IDataReader.

В начало

Замечания

The IDbCommand interface enables you to implement a Command class, which represents a statement that is executed at a data source. For more information about Command classes, see Реализация класса Command для модуля обработки данных.

An application does not create an instance of the IDbCommand interface directly, but creates an instance of a class that implements IDbCommand.

Classes that implement IDbCommand must also implement all required members, and typically define additional members to add provider-specific functionality.

When you implement from the IDbCommand interface, you should implement the following constructors:

Item

Description

PrvCommand()

Initializes a new instance of the PrvCommand class.

PrvCommand(string cmdText)

Initializes a new instance of the PrvCommand class with the text of the query.

PrvCommand(string cmdText, PrvTransaction transaction)

Initializes a new instance of the PrvCommand class with the text of the query, a PrvConnection, and the PrvTransaction.