SPWebPartConnectionCollection.OnRemove 方法

从SPWebPartConnectionCollection实例中删除一个元素时,请执行其他自定义进程。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Protected Overrides Sub OnRemove ( _
    index As Integer, _
    value As Object _
)
用法
Dim index As Integer
Dim value As Object

Me.OnRemove(index, value)
protected override void OnRemove(
    int index,
    Object value
)

参数

  • index
    类型:System.Int32

    从零开始的索引,可在其中找到

  • value
    类型:System.Object

    要从索引中删除的元素的值。

备注

如果SPWebPartConnectionCollection是只读的此重写将引发InvalidOperationException 。如果集合是只读的将不会删除该元素。

另请参阅

引用

SPWebPartConnectionCollection 类

SPWebPartConnectionCollection 成员

Microsoft.SharePoint.WebPartPages 命名空间