ListSortDescriptionCollection.IList.Insert(Int32, Object) 메서드

정의

항목을 컬렉션 내의 지정된 인덱스에 삽입합니다.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
void IList.Insert (int index, object? value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

매개 변수

index
Int32

컬렉션에서 가져오거나 설정할 ListSortDescription의 인덱스(0부터 시작)입니다.

value
Object

컬렉션에 삽입할 항목입니다.

구현

예외

설명

클래스는 ListSortDescriptionCollection 인터페이스를 System.Collections.IList 구현하기 때문에 메서드가 IList.Insert 있어야 합니다. 그러나 클래스는 ListSortDescriptionCollection 읽기 전용 컬렉션을 나타내므로 컬렉션에 항목을 삽입하는 작업은 잘못된 작업입니다.

적용 대상