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。