IDbConnection 인터페이스

Represents an open connection to a data source, and is implemented by SQL Server Reporting Services data processing extensions that access relational databases.

네임스페이스:  Microsoft.ReportingServices.DataProcessing
어셈블리:   Microsoft.ReportingServices.Interfaces(Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts(Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

구문

‘선언
Public Interface IDbConnection _
    Inherits IDisposable, IExtension
‘사용 방법
Dim instance As IDbConnection
public interface IDbConnection : IDisposable, 
    IExtension
public interface class IDbConnection : IDisposable, 
    IExtension
type IDbConnection =  
    interface 
        interface IDisposable 
        interface IExtension 
    end
public interface IDbConnection extends IDisposable, IExtension

IDbConnection 유형에서 다음 멤버를 표시합니다.

속성

  이름 설명
공용 속성 ConnectionString Gets or sets the string used to open a database.
공용 속성 ConnectionTimeout Gets the time to wait, while trying to establish a connection, before terminating the attempt and generating an error.
공용 속성 LocalizedName Gets the localized name of the extension to be displayed in a user interface. (IExtension에서 상속됨)

맨 위로 이동

메서드

  이름 설명
공용 메서드 BeginTransaction Begins a database transaction.
공용 메서드 Close Closes the connection to the database.
공용 메서드 CreateCommand Creates and returns a Command object associated with the connection.
공용 메서드 Dispose (IDisposable에서 상속됨)
공용 메서드 Open Initializes a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.
공용 메서드 SetConfiguration Used to pass custom configuration data to an extension. (IExtension에서 상속됨)

맨 위로 이동

주의

The IDbConnection interface enables you to implement a Connection class, which represents a unique session with a data source. The IDbConnection interface can be used to build a custom data provider. For more information about Connection classes, see 데이터 처리 확장 프로그램에 대한 Connection 클래스 구현.

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

Classes that implement IDbConnection must implement all required members, and typically define additional members to add provider-specific functionality. Because IDbConnection inherits from IExtension, you must also implement the IExtension members as part of your Connection class.

When you implement from the IDbConnection interface, you should also implement the following constructors:

Class

Description

PrvConnection()

Initializes a new instance of the PrvConnection class.

PrvConnection(string connectionString)

Initializes a new instance of the PrvConnection class when given a string containing the connection string.

참고 항목

참조

Microsoft.ReportingServices.DataProcessing 네임스페이스