AdoDotNetConnectionProperties 類別
使用 ADO.NET 連接字串產生器的基底類別 (DbConnectionStringBuilder),提供 IVsDataConnectionProperties 類別的實作。
繼承階層架構
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 IVsDataConnectionProperties, IDictionary(Of String, Object), _
ICollection(Of KeyValuePair(Of String, Object)), IEnumerable(Of KeyValuePair(Of String, Object)), _
IEnumerable, IVsDataConnectionUIProperties, ICustomTypeDescriptor, INotifyPropertyChanged
public class AdoDotNetConnectionProperties : DataSiteableObject<IVsDataProvider>,
IVsDataConnectionProperties, IDictionary<string, Object>, ICollection<KeyValuePair<string, Object>>,
IEnumerable<KeyValuePair<string, Object>>, IEnumerable, IVsDataConnectionUIProperties,
ICustomTypeDescriptor, INotifyPropertyChanged
public ref class AdoDotNetConnectionProperties : public DataSiteableObject<IVsDataProvider^>,
IVsDataConnectionProperties, IDictionary<String^, Object^>, ICollection<KeyValuePair<String^, Object^>>,
IEnumerable<KeyValuePair<String^, Object^>>, IEnumerable,
IVsDataConnectionUIProperties, ICustomTypeDescriptor, INotifyPropertyChanged
type AdoDotNetConnectionProperties =
class
inherit DataSiteableObject<IVsDataProvider>
interface IVsDataConnectionProperties
interface IDictionary<string, Object>
interface ICollection<KeyValuePair<string, Object>>
interface IEnumerable<KeyValuePair<string, Object>>
interface IEnumerable
interface IVsDataConnectionUIProperties
interface ICustomTypeDescriptor
interface INotifyPropertyChanged
end
public class AdoDotNetConnectionProperties extends DataSiteableObject<IVsDataProvider> implements IVsDataConnectionProperties, IDictionary<String, Object>, ICollection<KeyValuePair<String, Object>>, IEnumerable<KeyValuePair<String, Object>>, IEnumerable, IVsDataConnectionUIProperties, 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) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。