AdoDotNetConnectionProperties 類別
使用 ADO.NET 連接字串產生器的基底類別 (DbConnectionStringBuilder),提供 IVsDataConnectionProperties 類別的實作。
繼承階層架構
System.Object
Microsoft.VisualStudio.Data.Framework.DataSiteableObject<IVsDataProvider>
Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetConnectionProperties
命名空間: Microsoft.VisualStudio.Data.Framework.AdoDotNet
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Public Class AdoDotNetConnectionProperties _
Inherits DataSiteableObject(Of IVsDataProvider) _
Implements IVsDataConnectionUIProperties, IVsDataConnectionProperties, IDictionary(Of String, Object), _
ICollection(Of KeyValuePair(Of String, Object)), IEnumerable(Of KeyValuePair(Of String, Object)), _
IEnumerable, ICustomTypeDescriptor, INotifyPropertyChanged
public class AdoDotNetConnectionProperties : DataSiteableObject<IVsDataProvider>,
IVsDataConnectionUIProperties, IVsDataConnectionProperties, IDictionary<string, Object>, ICollection<KeyValuePair<string, Object>>,
IEnumerable<KeyValuePair<string, Object>>, IEnumerable, ICustomTypeDescriptor,
INotifyPropertyChanged
public ref class AdoDotNetConnectionProperties : public DataSiteableObject<IVsDataProvider^>,
IVsDataConnectionUIProperties, IVsDataConnectionProperties, IDictionary<String^, Object^>,
ICollection<KeyValuePair<String^, Object^>>, IEnumerable<KeyValuePair<String^, Object^>>,
IEnumerable, ICustomTypeDescriptor, INotifyPropertyChanged
type AdoDotNetConnectionProperties =
class
inherit DataSiteableObject<IVsDataProvider>
interface IVsDataConnectionUIProperties
interface IVsDataConnectionProperties
interface IDictionary<string, Object>
interface ICollection<KeyValuePair<string, Object>>
interface IEnumerable<KeyValuePair<string, Object>>
interface IEnumerable
interface ICustomTypeDescriptor
interface INotifyPropertyChanged
end
public class AdoDotNetConnectionProperties extends DataSiteableObject<IVsDataProvider> implements IVsDataConnectionUIProperties, IVsDataConnectionProperties, IDictionary<String, Object>, ICollection<KeyValuePair<String, Object>>, IEnumerable<KeyValuePair<String, Object>>, IEnumerable, ICustomTypeDescriptor, INotifyPropertyChanged
AdoDotNetConnectionProperties 型別會公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
![]() |
AdoDotNetConnectionProperties | 初始化 AdoDotNetConnectionProperties 類別的新執行個體。 |
回頁首
屬性
名稱 | 說明 | |
---|---|---|
![]() |
ConnectionStringBuilder | 取得目前連接屬性執行個體的基礎 ADO.NET 連接字串產生器物件。 |
![]() |
Count | 取得連接屬性的數目。 |
![]() |
IsComplete | 取得值足夠的連接屬性是否為連接字串設定。 |
![]() |
IsExtensible | 取得值 DDEX 提供者連接屬性是否為可擴充的。 |
![]() |
Item | 取得或設定指定之屬性的值。DDEX 提供者。 如果屬性設定為,則 PropertyChanged ,引發事件。 |
![]() |
Keys | 取得資料連接字串的一部分的所有屬性。 |
![]() |
Site | 取得或設定物件的網站。 (繼承自 DataSiteableObject<T>)。 |
![]() |
Values | 取得連接字串的值。 |
回頁首
方法
名稱 | 說明 | |
---|---|---|
![]() |
Add(String, Object) | 將新屬性加入至目前連接屬性集合。引發 PropertyChanged 事件。 |
![]() |
Add(String, Type, Object) | 將新屬性加入至目前連接屬性集合。 |
![]() |
Contains | 測試其中一個指定的屬性名稱和值是否為目前的成員連接屬性。 |
![]() |
ContainsKey | 測試指定的屬性名稱是否為目前的成員連接屬性。 |
![]() |
CopyTo | 一組重複連接屬性至陣列,開始於指定的陣列索引。 |
![]() |
Equals | 判斷指定的物件是否等於目前物件。 (繼承自 Object)。 |
![]() |
Finalize | 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。 |
![]() |
GetHashCode | 做為特定型別的雜湊函式。 (繼承自 Object)。 |
![]() |
GetSynonyms | 擷取指定之資料連接屬性的同義資料表陣列清單。 |
![]() |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 |
![]() |
IsSensitive | 傳回表示指定的屬性是否 Boolean 值包含敏感資訊。 |
![]() |
MemberwiseClone | 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。 |
![]() |
OnPropertyChanged | 當屬性在資料連接字串時,將引發事件。 PropertyChanged |
![]() |
OnSiteChanged | 如果網站變更時,引發事件。 (覆寫 DataSiteableObject<T>.OnSiteChanged(EventArgs)。) |
![]() |
Parse | 反組譯碼連接字串的元件至一組連接屬性做為目前 AdoDotNetConnectionProperties 類別執行個體的集合。 引發 PropertyChanged 事件。 |
![]() |
Remove | 從目前連接屬性集合移除屬性。 |
![]() |
Reset() | 重設連接屬性到它們的初始值並 PropertyChanged 引發事件。 |
![]() |
Reset(String) | 從連接字串中移除指定的屬性 PropertyChanged 並引發事件。 |
![]() |
ToDisplayString | 擷取目前資料集的字串表示適用於螢幕上顯示的連接屬性。 |
![]() |
ToSafeString | 傳回目前資料集的字串表示連接屬性,不應該序列化的敏感性屬性。 |
![]() |
ToString | 傳回目前資料集的字串表示連接屬性。 (覆寫 Object.ToString()。) |
![]() |
TryGetValue | 擷取值與所提供之索引鍵對應藉由呼叫 .NET Framework 連接字串產生器的基底類別 (DbConnectionStringBuilder) 的方法。 |
回頁首
事件
名稱 | 說明 | |
---|---|---|
![]() |
PropertyChanged | 在變更發生時發生的連接屬性的。 |
![]() |
SiteChanged | 在 Site 屬性變更時發生。 (繼承自 DataSiteableObject<T>)。 |
回頁首
明確介面實作
回頁首
備註
不預期會依 ADO.NET 的 DDEX 提供者會需要自訂列舉物件。不過,這個類別是您在情節可以擴充加入或需要在 Visual Studio 內修改的列舉功能的基底類別。
大部分在這個類別的公用方法是從基底類別 (IVsDataConnectionProperties) 覆寫,因為這個實作不依賴任何說明的基底類別 (例如剖析和建置工作;相反地,它們通常會委派至連接字串產生器對等物件的呼叫。
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。