다음을 통해 공유


IBindingList.ApplySort 메서드

PropertyDescriptorListSortDirection에 따라 목록을 정렬합니다.

네임스페이스: System.ComponentModel
어셈블리: System(system.dll)

구문

‘선언
Sub ApplySort ( _
    property As PropertyDescriptor, _
    direction As ListSortDirection _
)
‘사용 방법
Dim instance As IBindingList
Dim property As PropertyDescriptor
Dim direction As ListSortDirection

instance.ApplySort(property, direction)
void ApplySort (
    PropertyDescriptor property,
    ListSortDirection direction
)
void ApplySort (
    PropertyDescriptor^ property, 
    ListSortDirection direction
)
void ApplySort (
    PropertyDescriptor property, 
    ListSortDirection direction
)
function ApplySort (
    property : PropertyDescriptor, 
    direction : ListSortDirection
)

매개 변수

예외

예외 형식 조건

NotSupportedException

SupportsSortingfalse인 경우

설명

항목을 추가 또는 제거할 때 해당 항목들은 정렬 순서에 따라 놓입니다.

이 메서드는 SupportsSortingtrue이면 지원되고, 그렇지 않으면 NotSupportedException을 throw합니다.

구현자 참고 사항 이 메서드 구현에서는 Reset 열거형을 포함하는 ListChanged 이벤트를 발생시켜야 합니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

IBindingList 인터페이스
IBindingList 멤버
System.ComponentModel 네임스페이스