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 | 取得具有指定名稱的資料來源資訊屬性。 |
回頁首
備註
下列支援的資料來源屬性資訊清單:
屬性 |
描述 |
---|---|
DataSource 屬性的值。 |
|
DataSourceProductName 資料行的值。 ADO.NET 資料來源資訊資料表。 |
|
DataSourceProductVersion 資料行的值。 ADO.NET 資料來源資訊資料表。 |
|
預設值為 false。 |
|
僅顯示文字。 |
|
僅顯示文字。 |
|
僅顯示文字。 |
|
僅顯示文字。 |
|
InOut 和 ReturnValue。 |
|
預設值為 true。 |
|
Database的值,則為,如果非 NULL 和非 NULL。 |
|
根據 ADO.NET 資料來源資訊的 SupportedJoinOperators 資料行的啟發學習法 (Heuristic),如果任何外部聯結 true支援,則傳回,否則傳回 false。 |
|
true ,如果 IdentifierCase 資料行的值。 ADO.NET 資料來源的資訊包括 Sensitive; false ,如果值是 Insensitive; nullNull 參照 (即 Visual Basic 中的 Nothing) ,則為。 |
|
true ,如果 QuotedIdentifierCase 資料行的值。 ADO.NET 資料來源的資訊包括 Sensitive; false ,如果值是 Insensitive; nullNull 參照 (即 Visual Basic 中的 Nothing) ,則為。 |
|
呼叫以 ReservedWords 的 GetSchema 方法並建立由每個資料列的保留字的逗號分隔清單在結果集中。 |
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。