共用方式為


IVsDataConnectionProperties 介面

表示公開的方法和屬性來剖析和格式化之連接字串的介面,以及強型別屬性 (Property)、自訂屬性和同義資料儲存區。

命名空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Public Interface IVsDataConnectionProperties _
    Inherits IDictionary(Of String, Object), ICollection(Of KeyValuePair(Of String, Object)),  _
    IEnumerable(Of KeyValuePair(Of String, Object)), IEnumerable
public interface IVsDataConnectionProperties : IDictionary<string, Object>, 
    ICollection<KeyValuePair<string, Object>>, IEnumerable<KeyValuePair<string, Object>>, 
    IEnumerable
public interface class IVsDataConnectionProperties : IDictionary<String^, Object^>, 
    ICollection<KeyValuePair<String^, Object^>>, IEnumerable<KeyValuePair<String^, Object^>>, 
    IEnumerable
type IVsDataConnectionProperties =  
    interface 
        interface IDictionary<string, Object>
        interface ICollection<KeyValuePair<string, Object>>
        interface IEnumerable<KeyValuePair<string, Object>>
        interface IEnumerable 
    end
public interface IVsDataConnectionProperties extends IDictionary<String, Object>, ICollection<KeyValuePair<String, Object>>, IEnumerable<KeyValuePair<String, Object>>, IEnumerable

IVsDataConnectionProperties 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 Count 取得 ICollection 中所包含的元素數。 (繼承自 ICollection<KeyValuePair<String, Object>>)。
公用屬性 IsReadOnly 取得值,指出 ICollection 是否唯讀。 (繼承自 ICollection<KeyValuePair<String, Object>>)。
公用屬性 Item 取得或設定具有指定機碼的項目。 (繼承自 IDictionary<String, Object>)。
公用屬性 Keys 取得 ICollection,包含 IDictionary 的索引鍵。 (繼承自 IDictionary<String, Object>)。
公用屬性 Values 取得 ICollection,包含 IDictionary 中的值。 (繼承自 IDictionary<String, Object>)。

回頁首

方法

  名稱 描述
公用方法 Add(UTP) 將項目加入至 ICollection。 (繼承自 ICollection<KeyValuePair<String, Object>>)。
公用方法 Add(UTP, UTP) 將具有提供索引鍵和值的元素加入至 IDictionary。 (繼承自 IDictionary<String, Object>)。
公用方法 Add(String, Type, Object) 當由類別實作時,將新的屬性加入至目前連接屬性集合。
公用方法 Clear 將所有項目從 ICollection 移除。 (繼承自 ICollection<KeyValuePair<String, Object>>)。
公用方法 Contains 判斷 ICollection 是否包含特定值。 (繼承自 ICollection<KeyValuePair<String, Object>>)。
公用方法 ContainsKey 判斷 IDictionary 是否包含具有指定之索引鍵的項目。 (繼承自 IDictionary<String, Object>)。
公用方法 CopyTo 從特定的 Array 索引開始,複製 ICollection 項目至 Array。 (繼承自 ICollection<KeyValuePair<String, Object>>)。
公用方法 GetEnumerator 傳回逐一查看集合的列舉值。 (繼承自 IEnumerable<KeyValuePair<String, Object>>)。
公用方法 Parse 當由類別實作,反組譯碼連接字串的元件至一組目前 DataConnectionProperties 的屬性執行個體。
公用方法 Remove(UTP) 將有指定索引鍵的元素從 IDictionary 移除。 (繼承自 IDictionary<String, Object>)。
公用方法 Remove(UTP) ICollection 移除特定物件的第一個相符項目。 (繼承自 ICollection<KeyValuePair<String, Object>>)。
公用方法 Reset() 當由類別實作時,重設連接屬性的值為初始狀態。
公用方法 Reset(String) 當由類別實作時,從目前資料集連接屬性移除指定的屬性。
公用方法 ToSafeString 當由類別實作,以擷取排除敏感性屬性或屬性不應該保存目前資料集的字串表示連接屬性。
公用方法 ToString 當由類別實作,以擷取目前連接屬性的預設字串表示。
公用方法 TryGetValue 取得與指定索引鍵關聯的值。 (繼承自 IDictionary<String, Object>)。

回頁首

備註

最簡單的情況下,衍生類別應該將屬性加入至其在這些屬性的類別並將元件屬性自訂其行為。 在更進階案例中,衍生類別可以覆寫格式化和剖析程式碼並根據特定動作動態變更任何屬性 (例如,設定屬性的值。

這個介面的基底實作。DDEX Framework。

請參閱

參考

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空間