PeerObjectCollection.InsertItem(Int32, PeerObject) Método

Definición

Inserta un nuevo PeerObject elemento en en el PeerObjectCollection índice o clave especificados.

protected:
 override void InsertItem(int index, System::Net::PeerToPeer::Collaboration::PeerObject ^ item);
protected override void InsertItem(int index, System.Net.PeerToPeer.Collaboration.PeerObject item);
override this.InsertItem : int * System.Net.PeerToPeer.Collaboration.PeerObject -> unit
Protected Overrides Sub InsertItem (index As Integer, item As PeerObject)

Parámetros

index
Int32

Índice de base cero en el que reside el elemento.

item
PeerObject

Nuevo valor para el elemento en el índice especificado.

Excepciones

El item argumento es null.

Comentarios

Null no se permiten elementos de valor.

Se aplica a

Consulte también