Array.IList.Add(Object) Array.IList.Add(Object) Array.IList.Add(Object) Method

Definition

Calling this method always throws a NotSupportedException exception.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
Function Add (value As Object) As Integer Implements IList.Add
Parameters
value
Object Object Object

The object to be added to the IList.

Returns

Adding a value to an array is not supported. No value is returned.

Implements
Exceptions

Remarks

Ordinarily, an IList.Add implementation adds a member to a collection. However, because arrays have a fixed size (the IsFixedSize property always returns true), this method always throws a NotSupportedException exception.

This member is an explicit interface member implementation. It can be used only when the Array instance is cast to an IList interface.

Applies to