IDbConnectionExtension 接口

Represents additional connection properties that can be implemented by SQL Server Reporting Services data processing extensions.

命名空间:  Microsoft.ReportingServices.DataProcessing
程序集:   Microsoft.ReportingServices.SharePoint.UI.WebParts(在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)
  Microsoft.ReportingServices.Interfaces(在 Microsoft.ReportingServices.Interfaces.dll 中)

语法

声明
Public Interface IDbConnectionExtension _
    Inherits IDbConnection, IDisposable, IExtension
用法
Dim instance As IDbConnectionExtension
public interface IDbConnectionExtension : IDbConnection, 
    IDisposable, IExtension
public interface class IDbConnectionExtension : IDbConnection, 
    IDisposable, IExtension
type IDbConnectionExtension =  
    interface
        interface IDbConnection
        interface IDisposable
        interface IExtension
    end
public interface IDbConnectionExtension extends IDbConnection, IDisposable, IExtension

IDbConnectionExtension 类型公开以下成员。

属性

  名称 说明
公共属性 ConnectionString Gets or sets the string used to open a database. (从 IDbConnection 继承。)
公共属性 ConnectionTimeout Gets the time to wait, while trying to establish a connection, before terminating the attempt and generating an error. (从 IDbConnection 继承。)
公共属性 Impersonate Sets the username of the user that is impersonated while queries are executed. This property is ignored by the report server if impersonation is not supported by the data provider.
公共属性 IntegratedSecurity Indicates whether the connection should use integrated security rather than supply a username and password.
公共属性 LocalizedName Gets the localized name of the extension to be displayed in a user interface. (从 IExtension 继承。)
公共属性 Password Gets or sets the password to use when connecting to the database. Overrides any password specified in the connection string.
公共属性 UserName Gets or sets the username to use when connecting to the database. Overrides any username specified in the connection string.

页首

方法

  名称 说明
公共方法 BeginTransaction Begins a database transaction. (从 IDbConnection 继承。)
公共方法 Close Closes the connection to the database. (从 IDbConnection 继承。)
公共方法 CreateCommand Creates and returns a Command object associated with the connection. (从 IDbConnection 继承。)
公共方法 Dispose (从 IDisposable 继承。)
公共方法 Open Initializes a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object. (从 IDbConnection 继承。)
公共方法 SetConfiguration Used to pass custom configuration data to an extension. (从 IExtension 继承。)

页首

注释

The IDbConnectionExtension interface enables you to implement an extension of the IDbConnection interface, which adds additional functionality for authenticating a connection to a data source. The IDbConnectionExtension interface can be used to build a custom data processing extension. For more information about Connection classes, see 为数据处理扩展插件实现 Connection 类.

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

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