IVsDataConnectionProperties 接口

表示公开方法和属性分析和格式化的连接字符串的接口,以及强类型属性、自定义特性和使用存储的。

命名空间:  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<T> 中包含的元素数。 (继承自 ICollection<KeyValuePair<String, Object>>。)
公共属性 IsReadOnly 获取一个值,该值指示 ICollection<T> 是否为只读。 (继承自 ICollection<KeyValuePair<String, Object>>。)
公共属性 Item 获取或设置具有指定键的元素。 (继承自 IDictionary<String, Object>。)
公共属性 Keys 获取包含 IDictionary<TKey, TValue> 的键的 ICollection<T>。 (继承自 IDictionary<String, Object>。)
公共属性 Values 获取包含 IDictionary<TKey, TValue> 中的值的 ICollection<T>。 (继承自 IDictionary<String, Object>。)

页首

方法

  名称 说明
公共方法 Add(T) 将某项添加到 ICollection<T> 中。 (继承自 ICollection<KeyValuePair<String, Object>>。)
公共方法 Add(TKey, TValue) IDictionary<TKey, TValue> 中添加一个带有所提供的键和值的元素。 (继承自 IDictionary<String, Object>。)
公共方法 Add(String, Type, Object) 当实现由选件类,添加一个新的属性设置为当前连接属性集合。
公共方法 Clear ICollection<T> 中移除所有项。 (继承自 ICollection<KeyValuePair<String, Object>>。)
公共方法 Contains 确定 ICollection<T> 是否包含特定值。 (继承自 ICollection<KeyValuePair<String, Object>>。)
公共方法 ContainsKey 确定 IDictionary<TKey, TValue> 是否包含具有指定键的元素。 (继承自 IDictionary<String, Object>。)
公共方法 CopyTo 从特定的 Array 索引开始,将 ICollection<T> 的元素复制到一个 Array 中。 (继承自 ICollection<KeyValuePair<String, Object>>。)
公共方法 GetEnumerator() 返回一个循环访问集合的枚举器。 (继承自 IEnumerable<KeyValuePair<String, Object>>。)
公共方法 GetEnumerator() 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。)
公共方法 Parse 当实现由选件类,反汇编连接字符串的元素到安装在当前 DataConnectionProperties 实例的属性。
公共方法 Remove(TKey) IDictionary<TKey, TValue> 中移除带有指定键的元素。 (继承自 IDictionary<String, Object>。)
公共方法 Remove(T) ICollection<T> 中移除特定对象的第一个匹配项。 (继承自 ICollection<KeyValuePair<String, Object>>。)
公共方法 Reset() 当实现由选件类,重置连接属性的值设置为初始状态。
公共方法 Reset(String) 当实现由选件类,从当前中移除指定的属性设置数据连接属性。
公共方法 ToSafeString 当实现由选件类,检索排除区分属性或属性不应保留当前的字符串表示形式设置数据连接属性。
公共方法 ToString 当实现由选件类,检索当前连接属性的默认字符串表示形式。
公共方法 TryGetValue 获取与指定的键相关联的值。 (继承自 IDictionary<String, Object>。)

页首

备注

最简单的情况下,派生类应将特性添加到其在这些属性的选件类并将组件的属性来自定义它们的行为。在更高级的情况下,派生类可以重写分析的和格式化的代码并根据特定事件动态更改任何一个属性,例如设置属性的值。

此接口具有一个基实现。DDEX结构。

请参见

参考

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