다음을 통해 공유


Array.IList.Add(Object) 메서드

정의

이 메서드를 호출하면 항상 예외가 NotSupportedException throw됩니다.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add(object value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add

매개 변수

value
Object

에 추가할 개체입니다 IList.

반환

배열에 값을 추가하는 것은 지원되지 않습니다. 값이 반환되지 않습니다.

구현

예외

크기가 IList 고정되어 있습니다.

설명

일반적으로 구현은 IList.Add 컬렉션에 멤버를 추가합니다. 그러나 배열의 크기가 고정되어 있으므로(속성은 IsFixedSize 항상 반환 true) 이 메서드는 항상 예외를 NotSupportedException throw합니다.

이 멤버는 명시적 인터페이스 멤버 구현입니다. 인스턴스가 인터페이스로 Array 캐스팅 IList 되는 경우에만 사용할 수 있습니다.

적용 대상