SortDescription.PropertyName 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定所使用的屬性名稱作為排序標準。
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物件時,你可以根據 XML 節點的屬性來排序 。XmlDataProvider 例如,如果屬性名稱是 Cost,你就會在 中SortDescription指定「@Cost」作為 PropertyName 。