共用方式為


DataConnectionProperties.OrderedProperties 屬性

取得的屬性名稱集合指定合理 (或命令) 命令的屬性設定為,表示當以字串形式。

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)

語法

'宣告
Protected Overridable ReadOnly Property OrderedProperties As IList(Of String)
protected virtual IList<string> OrderedProperties { get; }
protected:
virtual property IList<String^>^ OrderedProperties {
    IList<String^>^ get ();
}
abstract OrderedProperties : IList<string> with get 
override OrderedProperties : IList<string> with get
function get OrderedProperties () : IList<String>

屬性值

類型:IList<String>
屬性名稱的集合表示屬性的合理 (或) 必要的指令。

備註

ToDisplayString 的基底類別實作和 ToSafeString 使用這個屬性的值會決定屬性的順序,在建立屬性時排序字串。 預設值不是 nullnull 參考 (即 Visual Basic 中的 Nothing),表示順序對屬性。

因為這樣做可讓連接字串更加方便使用,建議資料提供者實作這個屬性。

通常,更重要或更基本的屬性在字串應該發生前,,和進階屬性應該之後出現的字串。

.NET Framework 安全性

請參閱

參考

DataConnectionProperties 類別

Microsoft.VisualStudio.Data.Framework 命名空間