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