Compartir vía


Array.IList.Add(Object) Método

Definición

Al llamar a este método siempre se produce una NotSupportedException excepción.

 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

Parámetros

value
Object

Objeto que se va a agregar a .IList

Devoluciones

No se admite agregar un valor a una matriz. No se devuelve ningún valor.

Implementaciones

Excepciones

IList tiene un tamaño fijo.

Comentarios

Normalmente, una IList.Add implementación agrega un miembro a una colección. Sin embargo, dado que las matrices tienen un tamaño fijo (la IsFixedSize propiedad siempre devuelve true), este método siempre produce una NotSupportedException excepción.

Este miembro es una implementación explícita de miembro de interfaz. Solo se puede usar cuando la Array instancia se convierte en una IList interfaz.

Se aplica a