语言

PeerObjectCollection.SetItem(Int32, PeerObject) 方法

定义

替换 PeerObject 指定索引处的元素。

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)

参数

index
Int32

元素所在的从零开始的索引。

item
PeerObject

指定索引中元素的新值。

例外

参数 item 为 null.

注解

Null 不允许使用 value 元素。

适用于

另请参阅