CollectionView.SortDescriptions 속성

정의

컬렉션의 항목이 뷰에서 정렬되는 방법을 설명하는 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

모든 경우에 빈 SortDescriptionCollection입니다.

구현

설명

기본 클래스 CollectionView 는 정렬을 SortDescription 지원하지 않으므로 반환된(빈) 컬렉션에 추가할 수 없습니다. 대신 파생 클래스를 사용하고 정렬을 ListCollectionView BindingListCollectionView 지원합니다. 또한 예외를 CanSort 방지하려면 개체를 SortDescription 추가하거나 제거하기 전에 속성을 확인합니다.

적용 대상

추가 정보