다음을 통해 공유


IDbCommand 인터페이스

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

네임스페이스:  Microsoft.ReportingServices.DataProcessing
어셈블리:   Microsoft.ReportingServices.Interfaces(Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts(Microsoft.ReportingServices.SharePoint.UI.WebParts.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.

참고 항목

참조

Microsoft.ReportingServices.DataProcessing 네임스페이스