DataConnectionProperties 類別

定義

表示 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

public ref class DataConnectionProperties abstract : 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 abstract class DataConnectionProperties : 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 DataConnectionProperties = class
    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 MustInherit Class DataConnectionProperties
Implements ICollection(Of KeyValuePair(Of String, Object)), ICustomTypeDescriptor, IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), INotifyPropertyChanged, IVsDataConnectionUIProperties
繼承
DataConnectionProperties
實作

建構函式

DataConnectionProperties()

初始化 類別的非 DataConnectionProperties 參數化實例。

DataConnectionProperties(IEqualityComparer<String>)

初始化 類別的參數化實例, DataConnectionProperties 這個實例可讓您比較屬性名稱。

DataConnectionProperties(IEqualityComparer<String>, Char, Char)

初始化 類別的參數化實例, DataConnectionProperties 這個實例可讓您比較屬性名稱。

屬性

Count

取得現有資料連接屬性的數目。

IsComplete

取得布爾值,指出指定的 連接字串 是否完成。

IsExtensible

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

Item[String]

取得或設定 DDEX 提供者之指定屬性的值。

Keys

取得目前屬性索引鍵名稱的集合。

OrderedProperties

取得屬性名稱的集合,指定以字串形式表示時,屬性的合理 (或必要) 順序。

Values

擷取目前屬性值的集合。

方法

Add(String, Object)

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

Add(String, Type, Object)

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

AddProperty(PropertyDescriptor, Attribute[])

以動態方式將新屬性加入類別目前實例 DataConnectionProperties 原生辨識的屬性集合中。

AddProperty(String, Type, Attribute[])

動態新增屬性至這個數據連接屬性實例原生辨識的屬性集合。

Contains(KeyValuePair<String,Object>)

測試指定的屬性及其值是否存在於目前的連接屬性集中。

ContainsKey(String)

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

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

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

GetKeyAsString(String)

格式化屬性索引鍵,以放置於 連接字串 中。

GetProperties()

擷取所有目前已知屬性的描述項集合。

GetProperties(Attribute[])

擷取目前已知屬性的描述元集合,這些屬性符合一組指定的屬性。

GetProperty(String)

擷取具有指定屬性名稱的屬性描述項。

GetSynonyms(String)

擷取指定屬性的同義字數位清單。

GetValueAsString(String)

格式化屬性值,以放置於 連接字串 中。

Initialize(IDictionary<String,Object>)

將目前的 DataConnectionProperties 實例初始化為其默認狀態,然後在指定的字典中設定每個屬性。

InitializeProperties()

初始化目前 DataConnectionProperties 實例的原生辨識屬性集。

InitializeSynonyms()

初始化目前 DataConnectionProperties 實例中每個原生辨識屬性可用的同義字集合。

InitializeValue(String, Object)

初始化指定之連接屬性的值。

InitializeValues(IDictionary<String,Object>)

使用名稱/值組的字典,初始化指定之屬性集的值。

IsSensitive(String)

指出屬性是否包含敏感性資訊。

ModifyProperty(String, Attribute[])

修改目前 DataConnectionProperties 實例原生感知的現有屬性。

OnPropertyChanged(PropertyChangedEventArgs)

引發 PropertyChanged 事件。

Parse(String)

將 連接字串 的元件反組譯成目前 DataConnectionProperties 實例中的一組屬性。

ReadKeyFromString(String, Int32)

從 連接字串 從指定的索引開始讀取屬性索引鍵名稱,然後更新索引以指向緊接在屬性索引鍵名稱之後的位置。

ReadValueFromString(String, String, Int32)

從 連接字串 讀取屬性值,從指定的索引開始,將它轉換成正確的類型,並更新索引以指向屬性名稱後面的位置。

Remove(String)

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

RemoveProperty(String)

從目前的屬性集合中移除原生辨識的屬性。

Reset()

將連接屬性的值重設為初始狀態。

Reset(String)

從目前的數據連接屬性集中移除指定的屬性。

ResolveProperty(String, Boolean)

查閱同義字清單中的指定屬性,並選擇性地讓此屬性成為同義字集合的主要名稱,如果尚未這麼做。

SetPropertySynonyms(String, String[])

設定或清除指定屬性的同義字。

ShouldPersistProperty(String)

指出建置 連接字串 時是否應該保存屬性。

ToDisplayString()

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

ToSafeString()

擷取目前一組數據連接屬性的字串表示,該屬性會排除不應保存的敏感性屬性或屬性。

ToString()

擷取目前連接屬性的預設字串表示。

TryGetValue(String, Object)

擷取指定屬性的值。

事件

PropertyChanged

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

明確介面實作

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

表示 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

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

表示 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

ICollection<KeyValuePair<String,Object>>.IsReadOnly

表示 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

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

表示 IVsDataConnectionProperties 和 IVsDataConnectionUIProperties 介面的實作。

ICustomTypeDescriptor.GetAttributes()

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

ICustomTypeDescriptor.GetClassName()

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

ICustomTypeDescriptor.GetComponentName()

擷取指定之物件的名稱。

ICustomTypeDescriptor.GetConverter()

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

ICustomTypeDescriptor.GetDefaultEvent()

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

ICustomTypeDescriptor.GetDefaultProperty()

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

ICustomTypeDescriptor.GetEditor(Type)

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

ICustomTypeDescriptor.GetEvents()

擷取元件指定實例的事件。

ICustomTypeDescriptor.GetEvents(Attribute[])

使用指定的屬性陣組做為篩選,擷取元件實例的事件。

ICustomTypeDescriptor.GetProperties()

擷取元件指定實例的屬性。

ICustomTypeDescriptor.GetProperties(Attribute[])

使用屬性陣組做為篩選,擷取元件指定實例的屬性。

ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)

擷取物件,其中包含指定之屬性描述項所描述的屬性。

IEnumerable.GetEnumerator()

擷取 IEnumerator

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

表示 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,則傳回空列舉。

適用於