DataConnectionProperties.OrderedProperties 属性

检索属性名称的集合中指定合理(或必须)顺序的属性,它表示以字符串的形式。

命名空间:  Microsoft.VisualStudio.Data
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)

语法

声明
Protected Overridable ReadOnly Property OrderedProperties As StringCollection
protected virtual StringCollection OrderedProperties { get; }
protected:
virtual property StringCollection^ OrderedProperties {
    StringCollection^ get ();
}
abstract OrderedProperties : StringCollection
override OrderedProperties : StringCollection
function get OrderedProperties () : StringCollection

属性值

类型:System.Collections.Specialized.StringCollection
属性名的集合指示一个合理(或必须)顺序于属性。

备注

ToDisplayString 的基类实现并 ToFullString 使用此属性的值确定属性的顺序,在生成属性时对字符串进行排序。默认值不是 nullnull 引用(在 Visual Basic 中为 Nothing),指示序列与属性。

建议数据提供程序实现此属性,如这样做可帮助生成连接字符串多个用户友好。

通常,更重要或原子,属性在该字符串应发生之前,并且,更高级的属性应后出现在字符串。

.NET Framework 安全性

请参见

参考

DataConnectionProperties 类

Microsoft.VisualStudio.Data 命名空间