共用方式為


AdoDotNetDataSourceInformation 類別

提供有關 ADO.NET 資料來源的資訊。在名稱/值組傳遞之屬性格式。

繼承階層架構

Object
  Microsoft.VisualStudio.Data.ObjectWithSite
    Microsoft.VisualStudio.Data.DataSourceInformation
      Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetDataSourceInformation

命名空間:  Microsoft.VisualStudio.Data.AdoDotNet
組件:  Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)

語法

'宣告
Public Class AdoDotNetDataSourceInformation _
    Inherits DataSourceInformation
public class AdoDotNetDataSourceInformation : DataSourceInformation
public ref class AdoDotNetDataSourceInformation : public DataSourceInformation
type AdoDotNetDataSourceInformation =  
    class 
        inherit DataSourceInformation 
    end
public class AdoDotNetDataSourceInformation extends DataSourceInformation

AdoDotNetDataSourceInformation 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 AdoDotNetDataSourceInformation(DataConnection) 類別建構函式。初始化 AdoDotNetDataSourceInformation 類別的執行個體 DataConnection 物件的。
公用方法 AdoDotNetDataSourceInformation(DataConnection, ICollection) 類別建構函式。初始化類別 AdoDotNetDataSourceInformation 和連接屬性集合的執行個體 DataConnection 物件的。
公用方法 AdoDotNetDataSourceInformation(DataConnection, IDictionary) 類別建構函式。初始化 AdoDotNetDataSourceInformation 類別的執行個體 DataConnection 物件和連接屬性 IDictionary 物件的。

回頁首

屬性

  名稱 描述
受保護的屬性 Connection 擷取用於將資料連接會擷取資料來源屬性。 (繼承自 DataSourceInformation)。
受保護的屬性 ConnectionSupport 擷取提供者連接支援物件與資料連接。 (繼承自 DataSourceInformation)。
受保護的屬性 DataSourceInformation 擷取記憶體 DataTable 類別的實作所提供的資料來源資訊表示記憶體中資料的資料表。
公用屬性 Item 擷取具有指定名稱的資料來源資訊屬性。 (覆寫 DataSourceInformation.Item。)
受保護的屬性 ProviderObject 擷取基礎提供者連接物件所公開 (Expose) 連接支援物件。 (繼承自 DataSourceInformation)。
公用屬性 Site 擷取或設定物件站台。 (繼承自 ObjectWithSite)。

回頁首

方法

  名稱 描述
受保護的方法 AddProperty(String) 將屬性加入至支援的屬性清單。 (繼承自 DataSourceInformation)。
受保護的方法 AddProperty(String, Object) 將屬性和其值設定為支援的屬性清單。 (繼承自 DataSourceInformation)。
公用方法 Contains 擷取指示屬性布林值在這個資料來源資訊包含執行個體。 (覆寫 DataSourceInformation.Contains(String)。)
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
受保護的方法 OnSiteChanged 引發 SiteChanged 事件。 (繼承自 ObjectWithSite)。
受保護的方法 RetrieveValue 擷取指定的資料來源資訊屬性的值。 (覆寫 DataSourceInformation.RetrieveValue(String)。)
公用方法 ToString 傳回代表目前物件的字串。 (繼承自 Object)。

回頁首

事件

  名稱 描述
公用事件 SiteChanged 引發事件,在變更 Site 屬性。 (繼承自 ObjectWithSite)。

回頁首

明確介面實作

  名稱 描述
明確介面實作私用方法 IObjectWithSite.GetSite 擷取 IObjectWithSite.SetSite 使用方法設定的最後一個網站。在沒有已知的網站時,物件會傳回例外狀況。 (繼承自 ObjectWithSite)。
明確介面實作私用方法 IObjectWithSite.SetSite 提供網站的指標的站台物件。 (繼承自 ObjectWithSite)。

回頁首

備註

下列支援的資料來源屬性資訊清單:

屬性

描述

DataSourceName

DataSource 屬性的值。

DataSourceProduct

DataSourceProductName 資料行的值。 ADO.NET 資料來源資訊資料表。

DataSourceVersion

DataSourceProductVersion 資料行的值。 ADO.NET 資料來源資訊資料表。

SupportsNestedTransactions

預設值為 false。

CommandPrepareSupport

僅顯示文字。

CommandDeriveParametersSupport

僅顯示文字。

CommandDeriveSchemaSupport

僅顯示文字。

CommandExecuteSupport

僅顯示文字。

CommandParameterSupport

InOut 和 ReturnValue。

SupportsCommandTimeout

預設值為 true。

DefaultCatalog

Database的值,則為,如果非 NULL 和非 NULL。

SupportsAnsi92Sql

根據 ADO.NET 資料來源資訊的 SupportedJoinOperators 資料行的啟發學習法 (Heuristic),如果任何外部聯結 true支援,則傳回,否則傳回 false。

IdentifierPartsCaseSensitive

true ,如果 IdentifierCase 資料行的值。 ADO.NET 資料來源的資訊包括 Sensitive; false ,如果值是 Insensitive; nullnull 參考 (即 Visual Basic 中的 Nothing) ,則為。

QuotedIdentifierPartsCaseSensitive

true ,如果 QuotedIdentifierCase 資料行的值。 ADO.NET 資料來源的資訊包括 Sensitive; false ,如果值是 Insensitive; nullnull 參考 (即 Visual Basic 中的 Nothing) ,則為。

ReservedWords

呼叫以 ReservedWordsGetSchema 方法並建立由每個資料列的保留字的逗號分隔清單在結果集中。

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Data.AdoDotNet 命名空間