IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
및 을 기준으로 PropertyDescriptor 목록을 정렬합니다 ListSortDirection.
public:
void ApplySort(System::ComponentModel::PropertyDescriptor ^ property, System::ComponentModel::ListSortDirection direction);
public void ApplySort(System.ComponentModel.PropertyDescriptor property, System.ComponentModel.ListSortDirection direction);
abstract member ApplySort : System.ComponentModel.PropertyDescriptor * System.ComponentModel.ListSortDirection -> unit
Public Sub ApplySort (property As PropertyDescriptor, direction As ListSortDirection)
매개 변수
- property
- PropertyDescriptor
정렬 기준입니다 PropertyDescriptor .
- direction
- ListSortDirection
값 중 ListSortDirection 하나입니다.
예외
SupportsSorting은 false입니다.
설명
항목을 추가하거나 제거하면 이러한 항목은 정렬 순서대로 배치됩니다.
이 메서드는 지원됩니다true(있는 경우SupportsSorting). 그렇지 않으면 이 메서드가 을 throw합니다NotSupportedException.
구현자 참고
이 메서드의 구현은 열거형을 Reset 사용하여 ListChanged 이벤트를 발생시켜야 합니다.