Condividi tramite


Array.IList.Add(Object) Metodo

Definizione

La chiamata a questo metodo genera sempre un'eccezione 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

Parametri

value
Object

Oggetto da aggiungere all'oggetto IList.

Restituisce

L'aggiunta di un valore a una matrice non è supportata. Non viene restituito alcun valore.

Implementazioni

Eccezioni

Ha IList una dimensione fissa.

Commenti

In genere, un'implementazione IList.Add aggiunge un membro a una raccolta. Tuttavia, poiché le matrici hanno una dimensione fissa (la IsFixedSize proprietà restituisce truesempre ), questo metodo genera sempre un'eccezione NotSupportedException .

Questo membro è un'implementazione esplicita del membro dell'interfaccia. Può essere usato solo quando viene eseguito il cast dell'istanza a un'interfaccia ArrayIList .

Si applica a