AdoDotNetConnectionSupport 類別
使用適當的 ADO.NET 物件,提供 IVsDataConnectionSupport 介面的實作和 IVsDataCommand、 IVsDataAsyncCommand和 IVsDataTransaction 介面的間接實作。
繼承階層架構
Object
Microsoft.VisualStudio.Data.Framework.ServiceProvider
Microsoft.VisualStudio.Data.Framework.DataSiteableServiceProvider<IVsDataConnection>
Microsoft.VisualStudio.Data.Framework.DataConnectionSupport
Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetConnectionSupport
命名空間: Microsoft.VisualStudio.Data.Framework.AdoDotNet
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Public Class AdoDotNetConnectionSupport _
Inherits DataConnectionSupport _
Implements IVsDataSiteableObject(Of IVsDataProvider)
public class AdoDotNetConnectionSupport : DataConnectionSupport,
IVsDataSiteableObject<IVsDataProvider>
public ref class AdoDotNetConnectionSupport : public DataConnectionSupport,
IVsDataSiteableObject<IVsDataProvider^>
type AdoDotNetConnectionSupport =
class
inherit DataConnectionSupport
interface IVsDataSiteableObject<IVsDataProvider>
end
public class AdoDotNetConnectionSupport extends DataConnectionSupport implements IVsDataSiteableObject<IVsDataProvider>
AdoDotNetConnectionSupport 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
![]() |
AdoDotNetConnectionSupport | 初始化 AdoDotNetConnectionSupport 類別的執行個體。 |
回頁首
屬性
名稱 | 描述 | |
---|---|---|
![]() |
Connection | 取得目前連接的執行個體所使用的 DbConnection 物件。 |
![]() |
ConnectionString | 取得或設定資訊的字串表示需要建立指定資料來源的連接。 (覆寫 DataConnectionSupport.ConnectionString。) |
![]() |
ConnectionTimeout | 以秒為單位取得或設定時間量,對,等待建立連接在終止嘗試並產生逾時錯誤之前。 (覆寫 DataConnectionSupport.ConnectionTimeout。) |
![]() |
CurrentCommand | 取得目前連接的執行個體與目前的 DbCommand 物件。 |
![]() |
CurrentTransaction | 取得目前連接的執行個體與目前的 DbTransaction 物件。 |
![]() |
InAsyncMode | 取得指出連接是否處於可以非同步模式。 |
![]() |
ParentProvider | 取得父服務提供者的執行個體。 (繼承自 ServiceProvider)。 |
![]() |
ProviderObject | 取得指定之連接的基礎提供者物件。 (覆寫 DataConnectionSupport.ProviderObject。) |
![]() |
ServiceProvider | 取得 Visual Studio 全域服務提供者。 (繼承自 DataConnectionSupport)。 |
![]() |
Site | 取得或設定站台。 (繼承自 DataSiteableServiceProvider<T>)。 |
![]() |
State | 取得資料連接的狀態。 (覆寫 DataConnectionSupport.State。) |
回頁首
方法
回頁首
事件
名稱 | 描述 | |
---|---|---|
![]() |
MessageReceived | 發生於訊息時,從資料來源接收。 (繼承自 DataConnectionSupport)。 |
![]() |
SiteChanged | 就會發生這個網站已經變更。 (繼承自 DataSiteableServiceProvider<T>)。 |
![]() |
StateChanged | 發生於,當資料連接的狀態已變更。 (繼承自 DataConnectionSupport)。 |
回頁首
明確介面實作
名稱 | 描述 | |
---|---|---|
![]() ![]() |
IServiceProvider.QueryService | 執行可藉由 IServiceProvider的實作公開服務的 Factory。 (繼承自 ServiceProvider)。 |
![]() ![]() |
IVsDataSiteableObject<IVsDataProvider>.Site | 取得目前連接的執行個體與目前的 IVsDataProvider 物件。 |
回頁首
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。