SPWebPartManager.GetConsumerConnectionPoints 方法
返回可用作从充当内的 Web 部件连接的使用者 Web 部件的连接点的使用者连接点的集合。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overrides Function GetConsumerConnectionPoints ( _
webPart As WebPart _
) As ConsumerConnectionPointCollection
用法
Dim instance As SPWebPartManager
Dim webPart As WebPart
Dim returnValue As ConsumerConnectionPointCollection
returnValue = instance.GetConsumerConnectionPoints(webPart)
public override ConsumerConnectionPointCollection GetConsumerConnectionPoints(
WebPart webPart
)
参数
webPart
类型:System.Web.UI.WebControls.WebParts.WebPart充当中连接的使用者 Web 部件。
返回值
类型:System.Web.UI.WebControls.WebParts.ConsumerConnectionPointCollection
包含在使用者连接点的所有ConsumerConnectionPointCollection 。
异常
异常 | 条件 |
---|---|
ArgumentNullException | webPart是空引用(无 在 Visual Basic 中)。 |
备注
此重写检索 Web 部件的使用者连接点。