PeerObjectCollection.InsertItem(Int32, PeerObject) Método

Definição

Insere um novo elemento PeerObject no PeerObjectCollection na chave ou no índice especificado.Inserts a new PeerObject element into the PeerObjectCollection at the specified index or key.

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

O índice de base zero no qual o elemento está.The zero-based index in which the element resides.

item
PeerObject

O novo valor para o elemento no índice especificado.The new value for the element in the specified index.

Exceções

O argumento item é null.The item argument is null.

Comentários

Null elementos de valor não são permitidos.Null value elements are not allowed.

Aplica-se a

Confira também