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,则返回空枚举。

适用于