语言

ConnectionStore 类

定义

基于 IDbConnect 实现了 IConnectionStore 接口的实例。

public ref class ConnectionStore : System::ComponentModel::Component, IDisposable, Microsoft::SqlServer::Management::IConnectionStore<System::Data::IDbConnection ^>
public class ConnectionStore : System.ComponentModel.Component, IDisposable, Microsoft.SqlServer.Management.IConnectionStore<System.Data.IDbConnection>
type ConnectionStore = class
    inherit Component
    interface IConnectionStore<IDbConnection>
    interface IDisposable
Public Class ConnectionStore
Inherits Component
Implements IConnectionStore(Of IDbConnection), IDisposable
继承
ConnectionStore
实现

构造函数

名称 说明
ConnectionStore()

初始化一个带有默认属性值的新 ConnectionStore 类实例。

ConnectionStore(IContext)

初始化一个带有指定上下文参数的新类实例 ConnectionStore 。

ConnectionStore(IServiceProvider)

初始化一个带有指定 serviceProvider 参数的类的新实例 ConnectionStore 。

属性

名称 说明
ConnectionInfo

获取或设置类连接 ConnectionStore 的信息。

Connections

获取连接列表以便以后处理。

方法

名称 说明
Dispose(Boolean)

释放由托管资源使用 ConnectionStore 的非托管资源,并选择性地释放托管资源。

Finalize()

具体说明最终方法。

GetConnection()

创建现有连接的副本。 此类不能被继承。

GetConnection(Boolean)

检索该对象中使用的连接。 此类不能被继承。

适用于