SortDescription.PropertyName 屬性

定義

取得或設定作為排序準則使用的屬性名稱。

public:
 property System::String ^ PropertyName { System::String ^ get(); void set(System::String ^ value); };
public string PropertyName { get; set; }
member this.PropertyName : string with get, set
Public Property PropertyName As String

屬性值

預設值為 null。

備註

此屬性應該是基礎集合中專案的公用屬性。

字串是由與排序相關的特定 ICollectionView 物件解譯。 BindingListCollectionView 僅支援簡單的資料行名稱。 ListCollectionView 支援一般屬性路徑和 XPath XML 數據。 因此,當檢視是 ListCollectionView 物件時,您可以根據這些節點的屬性,在 中 XmlDataProvider 排序 XML 節點。 例如,如果屬性名稱為 Cost,您會在 中SortDescription指定 「@Cost」。。PropertyName

適用於