ReadOnlyCollection<T>.IList.Add(Object) Método

Definición

Agrega un elemento al IList. Esta implementación siempre produce NotSupportedException.

 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

que Object se va a agregar a .IList

Devoluciones

Posición en la que se insertó el nuevo elemento.

Implementaciones

Excepciones

Siempre se produce.

Comentarios

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

Se aplica a