共用方式為


DataConnectionSupport 類別

定義

表示 IVsDataConnectionSupport 介面的實作。

public ref class DataConnectionSupport abstract : Microsoft::VisualStudio::Data::Framework::DataSiteableServiceProvider<Microsoft::VisualStudio::Data::Services::IVsDataConnection ^>, IDisposable, IServiceProvider, Microsoft::VisualStudio::Data::Services::IVsDataConnectionEvents, Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataConnectionSupport
public abstract class DataConnectionSupport : Microsoft.VisualStudio.Data.Framework.DataSiteableServiceProvider<Microsoft.VisualStudio.Data.Services.IVsDataConnection>, IDisposable, IServiceProvider, Microsoft.VisualStudio.Data.Services.IVsDataConnectionEvents, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionSupport
type DataConnectionSupport = class
    inherit DataSiteableServiceProvider<IVsDataConnection>
    interface IVsDataConnectionSupport
    interface IServiceProvider
    interface IDisposable
    interface IVsDataConnectionEvents
Public MustInherit Class DataConnectionSupport
Inherits DataSiteableServiceProvider(Of IVsDataConnection)
Implements IDisposable, IServiceProvider, IVsDataConnectionEvents, IVsDataConnectionSupport
繼承
衍生
實作

建構函式

DataConnectionSupport()

初始化 DataConnectionSupport 類別的新執行個體。

屬性

ConnectionString

取得或設定建立指定數據源連接所需的資訊的字串表示。

ConnectionTimeout

取得或設定在終止嘗試並產生逾時錯誤之前建立連接時要等候的時間量。

ParentProvider

取得父服務提供者的目前實例。

(繼承來源 ServiceProvider)
ProviderObject

取得支援目前數據連線的基礎數據提供者。

ServiceProvider

取得全域 Visual Studio 服務提供者。

Site

取得或設定網站。

(繼承來源 DataSiteableServiceProvider<T>)
State

取得數據連線的狀態。

方法

AddService(Type, Object)

將指定的服務加入至服務的內部集合。

(繼承來源 ServiceProvider)
AddService(Type, Object, Boolean)

將指定的服務加入服務物件集合或父服務容器。

(繼承來源 ServiceProvider)
AddService(Type, ServiceCreatorCallback)

將指定的服務加入至服務的內部集合。

(繼承來源 ServiceProvider)
AddService(Type, ServiceCreatorCallback, Boolean)

將指定的服務加入至服務的內部集合或父服務容器。

(繼承來源 ServiceProvider)
Close()

關閉指定的連接。

CreateService(IServiceContainer, Type)

建立新的服務物件,指定介面服務類型。

Dispose()

釋放數據連線所持有的所有資源。

Dispose(Boolean)

釋放數據連線所持有的所有資源。

Finalize()

當數據連接支援對象終結時,釋放數據連接所保留的所有資源。

GetService(Guid)

擷取具有指定服務 GUID 的服務。

(繼承來源 ServiceProvider)
GetService(Type)

擷取指定型別的服務。

(繼承來源 ServiceProvider)
Initialize(Object)

從現有的數據提供者對象選擇性地初始化指定的連接。

OnMessageReceived(DataConnectionMessageReceivedEventArgs)

處理 MessageReceived 事件。

OnSiteChanged(EventArgs)

引發 SiteChanged 事件。

(繼承來源 DataSiteableServiceProvider<T>)
OnStateChanged(DataConnectionStateChangedEventArgs)

處理 StateChanged 事件。

Open(Boolean)

開啟指定的數據連線。

RemoveService(Type)

從內部服務集合中移除指定的服務

(繼承來源 ServiceProvider)
RemoveService(Type, Boolean)

從內部服務集合或父服務容器中移除指定的服務。

(繼承來源 ServiceProvider)

事件

MessageReceived

發生於從數據源接收訊息時。

SiteChanged

發生於網站變更時。

(繼承來源 DataSiteableServiceProvider<T>)
StateChanged

發生於數據連線的狀態已變更時。

明確介面實作

IServiceProvider.QueryService(Guid, Guid, IntPtr)

當做透過 IServiceProvider 實作公開之服務的處理站執行。

(繼承來源 ServiceProvider)

擴充方法

QueryService(IServiceProvider, Guid)

根據服務提供者的服務 GUID 取得服務提供者公開的服務。

QueryService<TService>(IServiceProvider)

根據服務提供者的服務類型,取得服務提供者公開的服務。

適用於