表示公开方法和属性分析和格式化的连接字符串的接口,以及强类型属性、自定义特性和使用存储的。
命名空间: 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 | 获取包含 IDictionary 的键的 ICollection。 (继承自 IDictionary<String, Object>。) |
![]() |
Values | 获取包含 IDictionary 中的值的 ICollection。 (继承自 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结构。