CloudCollection.SetItem(Int32, Cloud) 方法

定义

替换指定索引处的 CloudReplaces the Cloud at the specified index.

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

参数

index
Int32

待替换元素的从零开始的索引。The zero-based index of the element to replace.

item
Cloud

待替换元素的新值。The new value for the element to be replaced.

例外

提供的 Cloud 不能为 nullThe Cloud provided cannot be null.

注解

Null 不允许使用项。Null items are not allowed.

适用于

另请参阅