Partilhar via


PeerObjectCollection.SetItem(Int32, PeerObject) Método

Definição

Substitui o elemento PeerObject no índice especificado.

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

Parâmetros

index
Int32

O índice de base zero no qual o elemento está.

item
PeerObject

O novo valor para o elemento no índice especificado.

Exceções

O argumento item é null.

Comentários

Null elementos value não são permitidos.

Aplica-se a

Confira também