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。

備註

此屬性應為底層收藏中項目的公共財產。

字串由參與排序的特定物件來解釋 ICollectionViewBindingListCollectionView 僅支援簡單的欄位名稱。 ListCollectionView 支援一般屬性路徑及 XPath XML 資料。 因此,當視圖是ListCollectionView物件時,你可以根據 XML 節點的屬性來排序 。XmlDataProvider 例如,如果屬性名稱是 Cost,你就會在 中SortDescription指定「@Cost」作為 PropertyName

適用於