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 物件時,您可以根據這些節點的屬性,在 中 XmlDataProvider 排序 XML 節點。 例如,如果屬性名稱為 Cost
,您會在 中SortDescription指定 「@Cost」。。PropertyName
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應