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