ConnectionStore 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實作基於 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
- 實作
建構函式
| 名稱 | Description |
|---|---|
| ConnectionStore() |
初始化一個新的類別實例 ConnectionStore ,使用預設屬性值。 |
| ConnectionStore(IContext) |
初始化一個新的類別實例 ConnectionStore ,並使用指定的上下文參數。 |
| ConnectionStore(IServiceProvider) |
初始化一個新的類別實例 ConnectionStore ,並以指定的 serviceProvider 參數。 |
屬性
| 名稱 | Description |
|---|---|
| ConnectionInfo |
取得或設定類別連線 ConnectionStore 的資訊。 |
| Connections |
取得連結清單,以便日後處理。 |
方法
| 名稱 | Description |
|---|---|
| Dispose(Boolean) |
釋放 未管理的資源, ConnectionStore 並可選擇性地釋放受管理資源。 |
| Finalize() |
指定最終方法。 |
| GetConnection() |
建立現有連線的副本。 此類別無法獲得繼承。 |
| GetConnection(Boolean) |
擷取此物件中使用的連線。 此類別無法獲得繼承。 |