IListContract<C>.SetItem(Int32, C) 메서드

정의

지정된 인덱스에 있는 요소를 바꿉니다.

public:
 void SetItem(int index, C value);
public void SetItem (int index, C value);
abstract member SetItem : int * 'C -> unit
Public Sub SetItem (index As Integer, value As C)

매개 변수

index
Int32

요소를 설정할 인덱스(0부터 시작)입니다.

value
C

지정된 인덱스에 설정할 요소입니다.

예외

index가 0보다 작은 경우

또는

indexGetCount()의 반환 값보다 크거나 같은 경우

IListContract<C>이 읽기 전용인 경우

설명

SetItem 메서드는 지정된 된 인덱스에 요소를 바꿉니다. 요소를 추가 하는 IListContract<C>를 사용 하 여를 Insert 메서드.

결정할 여부를 IListContract<C> 읽기 전용인 지를 호출 합니다 GetIsReadOnly 메서드.

적용 대상