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 では、XML データの一般的なプロパティ パスと XPath がサポートされています。 したがって、ビューが ListCollectionView オブジェクトの場合は、それらのノードの属性に基づいて、 XmlDataProvider 内の XML ノードを並べ替えることができます。 たとえば、属性名がCost場合は、SortDescriptionPropertyNameに "@Cost" を指定します。

適用対象