ConnectionStore 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
基于 IDbConnection 实现 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) |
检索在此对象中使用的连接。 此类不能被继承。 |