Share via


CloudCollection.InsertItem(Int32, Cloud) 方法

定义

Cloud 插入到 CloudCollection 中的指定索引位置处。

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

参数

index
Int32

待替换元素的从零开始的索引。

item
Cloud

位于指定索引处的新元素的值。

例外

提供的 Cloud 不能为 null

注解

Null 无法将项插入到集合中。

适用于

另请参阅