CollectionView.SortDescriptions プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コレクション内の項目をビュー内でどのように並べ替えるかを説明する SortDescription 構造体のコレクションを取得します。
public:
virtual property System::ComponentModel::SortDescriptionCollection ^ SortDescriptions { System::ComponentModel::SortDescriptionCollection ^ get(); };
public virtual System.ComponentModel.SortDescriptionCollection SortDescriptions { get; }
member this.SortDescriptions : System.ComponentModel.SortDescriptionCollection
Public Overridable ReadOnly Property SortDescriptions As SortDescriptionCollection
プロパティ値
すべてのクラスについて空の SortDescriptionCollection。
実装
注釈
基底クラスCollectionViewでは並べ替えがサポートされていないため、 を返された (空の) コレクションに追加SortDescriptionすることはできません。 代わりに、派生クラス ListCollectionView を使用し、 BindingListCollectionView 並べ替えをサポートします。 また、例外を回避するには、オブジェクトを CanSort 追加または削除 SortDescription する前に プロパティを確認してください。