Share via


AdoDotNetConnectionProperties 類別

定義

表示使用 ADO .NET DbConnectionStringBuilder 對象實作 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

public ref class AdoDotNetConnectionProperties : Microsoft::VisualStudio::Data::Framework::DataSiteableObject<Microsoft::VisualStudio::Data::Core::IVsDataProvider ^>, Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataConnectionUIProperties, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::ComponentModel::ICustomTypeDescriptor, System::ComponentModel::INotifyPropertyChanged
public class AdoDotNetConnectionProperties : Microsoft.VisualStudio.Data.Framework.DataSiteableObject<Microsoft.VisualStudio.Data.Core.IVsDataProvider>, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionUIProperties, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>, System.ComponentModel.ICustomTypeDescriptor, System.ComponentModel.INotifyPropertyChanged
type AdoDotNetConnectionProperties = class
    inherit DataSiteableObject<IVsDataProvider>
    interface IVsDataConnectionProperties
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
    interface IVsDataConnectionUIProperties
    interface ICustomTypeDescriptor
    interface INotifyPropertyChanged
Public Class AdoDotNetConnectionProperties
Inherits DataSiteableObject(Of IVsDataProvider)
Implements ICollection(Of KeyValuePair(Of String, Object)), ICustomTypeDescriptor, IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), INotifyPropertyChanged, IVsDataConnectionUIProperties
繼承
AdoDotNetConnectionProperties
實作

建構函式

AdoDotNetConnectionProperties()

初始化 AdoDotNetConnectionProperties 類別的新執行個體。

屬性

ConnectionStringBuilder

取得目前連接屬性實例的基礎 ADO.NET 連接字串 產生器物件。

Count

取得連接屬性的數目。

IsComplete

取得值,指出是否已為 連接字串 設定足夠的連接屬性。

IsExtensible

取得值,指出 DDEX 提供者連接屬性是否可延伸。

Item[String]

取得或設定 DDEX 提供者上指定屬性的值。 如果已設定 屬性, PropertyChanged 則引發 事件。

Keys

取得屬於數據 連接字串 的所有屬性。

Site

取得或設定物件網站。

(繼承來源 DataSiteableObject<T>)
Values

取得 連接字串的值。

方法

Add(String, Object)

將新的屬性加入至目前的連接屬性集合。 引發 PropertyChanged 事件。

Add(String, Type, Object)

將新的屬性加入至目前的連接屬性集合。

Contains(KeyValuePair<String,Object>)

測試指定的屬性名稱和值組是否為目前連接屬性集的成員。

ContainsKey(String)

測試指定的屬性名稱是否為目前連接屬性集的成員。

CopyTo(KeyValuePair<String,Object>[], Int32)

從指定的陣列索引開始,將連接屬性集複製到陣列。

GetSynonyms(String)

擷取指定資料連接屬性之同義字的陣列清單。

IsSensitive(String)

傳回布爾值,指出指定的屬性是否包含敏感性資訊。

OnPropertyChanged(PropertyChangedEventArgs)

PropertyChanged當數據 連接字串 中的屬性變更時,引發 事件。

OnSiteChanged(EventArgs)

如果網站已變更,則引發事件。

Parse(String)

將 連接字串元件反組譯成一組連接屬性,如目前AdoDotNetConnectionProperties類別實例中所設定。 引發 PropertyChanged 事件。

Remove(String)

從目前的連接屬性集合中移除屬性。

Reset()

將連接屬性重設為其初始值,並引發 PropertyChanged 事件。

Reset(String)

從 連接字串 移除指定的屬性,並引發 PropertyChanged 事件。

ToDisplayString()

擷取目前一組適合屏幕顯示之數據連線屬性的字串表示。

ToSafeString()

傳回目前數據集之數據連線屬性的字串表示,但不包括應該串行化的敏感性屬性。

ToString()

傳回目前數據集之數據連接屬性的字串表示。

TryGetValue(String, Object)

在 .NET Framework 連接字串 產生器基類上呼叫這個方法,以擷取對應至所提供索引鍵的值, (DbConnectionStringBuilder) 。

事件

PropertyChanged

發生於連接屬性變更時發生。

SiteChanged

Site 屬性變更時發生。

(繼承來源 DataSiteableObject<T>)

明確介面實作

ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>)

表示使用 ADO .NET DbConnectionStringBuilder 對象實作 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

ICollection<KeyValuePair<String,Object>>.Clear()

表示使用 ADO .NET DbConnectionStringBuilder 對象實作 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

ICollection<KeyValuePair<String,Object>>.IsReadOnly

表示使用 ADO .NET DbConnectionStringBuilder 對象實作 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

ICollection<KeyValuePair<String,Object>>.Remove(KeyValuePair<String,Object>)

表示使用 ADO .NET DbConnectionStringBuilder 對象實作 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

ICustomTypeDescriptor.GetAttributes()

擷取指定物件的自訂屬性集合。

ICustomTypeDescriptor.GetClassName()

擷取指定物件的類別名稱。

ICustomTypeDescriptor.GetComponentName()

擷取指定之物件的名稱。

ICustomTypeDescriptor.GetConverter()

擷取指定物件的型別轉換子。

ICustomTypeDescriptor.GetDefaultEvent()

擷取指定對象的預設事件。

ICustomTypeDescriptor.GetDefaultProperty()

擷取指定對象的預設屬性。

ICustomTypeDescriptor.GetEditor(Type)

擷取這個物件之指定型別的編輯器。

ICustomTypeDescriptor.GetEvents()

如需這個成員的說明,請參閱 GetEvents()

ICustomTypeDescriptor.GetEvents(Attribute[])

如需這個成員的說明,請參閱 GetEvents()

ICustomTypeDescriptor.GetProperties()

如需這個成員的說明,請參閱 GetProperties()

ICustomTypeDescriptor.GetProperties(Attribute[])

如需這個成員的說明,請參閱 GetProperties()

ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)

如需這個成員的說明,請參閱 GetPropertyOwner(PropertyDescriptor)

IEnumerable.GetEnumerator()

擷取列舉值,列舉所有已知連接屬性及其值,如果有的話。

IEnumerable<KeyValuePair<String,Object>>.GetEnumerator()

表示使用 ADO .NET DbConnectionStringBuilder 對象實作 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

擴充方法

AddRange<TKey,TValue>(IDictionary<TKey,TValue>, IDictionary<TKey,TValue>, Boolean)

將一個字典內容新增至另一個字典

GetOrDefault<TK,TV>(IDictionary<TK,TV>, TK)

依指定的索引鍵取得值。

EmptyIfNull<T>(IEnumerable<T>)

如果不是 Null,則傳回這個列舉。 如果是 null,則傳回空列舉。

適用於