共用方式為


AdoDotNetSourceInformation 類別

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

繼承階層架構

System.Object
  Microsoft.VisualStudio.Data.Framework.DataSiteableObject<IVsDataConnection>
    Microsoft.VisualStudio.Data.Framework.DataSourceInformation
      Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetSourceInformation

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

語法

'宣告
Public Class AdoDotNetSourceInformation _
    Inherits DataSourceInformation _
    Implements IVsDataSourceInformation
public class AdoDotNetSourceInformation : DataSourceInformation, 
    IVsDataSourceInformation
public ref class AdoDotNetSourceInformation : public DataSourceInformation, 
    IVsDataSourceInformation
type AdoDotNetSourceInformation =  
    class
        inherit DataSourceInformation
        interface IVsDataSourceInformation
    end
public class AdoDotNetSourceInformation extends DataSourceInformation implements IVsDataSourceInformation

AdoDotNetSourceInformation 型別會公開下列成員。

建構函式

  名稱 說明
受保護的方法 AdoDotNetSourceInformation() 初始化 AdoDotNetDataSourceInformation 類別的新執行個體。
公用方法 AdoDotNetSourceInformation(IVsDataConnection) AdoDotNetDataSourceInformation 初始化類別的新執行個體資料連接的物件。

回頁首

屬性

  名稱 說明
受保護的屬性 Connection 取得基礎 DbConnection 物件執行個體使用類別。
公用屬性 Item 取得具有指定名稱的資料來源資訊屬性。 (繼承自 DataSourceInformation)。
公用屬性 Site 取得或設定物件的網站。 (繼承自 DataSiteableObject<T>)。
受保護的屬性 SourceInformation 取得記憶體中資料來源所提供的資訊 DataTable 由類別實作代表記憶體中資料的資料表。

回頁首

方法

  名稱 說明
受保護的方法 AddProperty(String) 將屬性加入至支援的屬性清單。 (繼承自 DataSourceInformation)。
受保護的方法 AddProperty(String, Object) 將屬性和其值設定為支援的屬性清單。 (繼承自 DataSourceInformation)。
公用方法 Contains 擷取表示指定的屬性是否 Boolean 值在這個資料來源資訊包含執行個體。 (繼承自 DataSourceInformation)。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType() 取得目前執行個體的 Type。 (繼承自 Object)。
受保護的方法 GetType(String) 擷取表示指定之屬性的型別 Type 值,因此啟用擷取值的適當的轉換為正確的型別。 (繼承自 DataSourceInformation)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
受保護的方法 OnSiteChanged 引發 SiteChanged 事件。 (覆寫 DataSiteableObject<T>.OnSiteChanged(EventArgs)。)
受保護的方法 RetrieveValue 擷取指定的資料來源資訊屬性的值。 (覆寫 DataSourceInformation.RetrieveValue(String)。)
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

事件

  名稱 說明
公用事件 SiteChanged Site 屬性變更時發生。 (繼承自 DataSiteableObject<T>)。

回頁首

明確介面實作

  名稱 說明
明確介面實作私用方法 IVsDataSourceInformation.Contains 擷取指示屬性是否 Boolean 值在資料來源中的資訊包含執行個體。
明確介面實作私用屬性 IVsDataSourceInformation.Item 取得具有指定名稱的資料來源資訊屬性。

回頁首

備註

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

屬性

描述

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.Framework.AdoDotNet 命名空間