PeerObjectCollection.SetItem(Int32, PeerObject) 方法
定义
替换指定索引处的 PeerObject 元素。Replaces the PeerObject element at the specified index.
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
该元素所在位置的从零开始的索引。The zero-based index in which the element resides.
- item
- PeerObject
位于指定索引处的元素的新值。The new value for the element in the specified index.
例外
item 参数为 null。The item argument is null.
注解
Null 不允许使用 value 元素。Null value elements are not allowed.