SPWebPartConnectionCollection.OnInsert 方法
将新元素插入到SPWebPartConnectionCollection实例之前执行其他自定义进程。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Protected Overrides Sub OnInsert ( _
index As Integer, _
value As Object _
)
用法
Dim index As Integer
Dim value As Object
Me.OnInsert(index, value)
protected override void OnInsert(
int index,
Object value
)
参数
index
类型:System.Int32从零开始的索引处插入值。
value
类型:System.Object新值的索引处的元素。
备注
如果SPWebPartConnectionCollection是只读的此重写将引发InvalidOperationException 。如果集合是只读的则将不插入新的元素。
另请参阅
引用
SPWebPartConnectionCollection 类