SPWebPartConnectionCollection.OnClear 方法

清除SPWebPartConnectionCollection实例的内容时,请执行其他自定义进程。

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

语法

声明
Protected Overrides Sub OnClear
用法

Me.OnClear()
protected override void OnClear()

备注

如果SPWebPartConnectionCollection是只读的此重写将引发InvalidOperationException 。如果集合是只读的将不会清除集合的内容。

另请参阅

引用

SPWebPartConnectionCollection 类

SPWebPartConnectionCollection 成员

Microsoft.SharePoint.WebPartPages 命名空间