SPWebPartManager 类
管理所有 Web 部件控件、功能和网页上发生的事件。
继承层次结构
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebParts.WebPartManager
Microsoft.SharePoint.WebPartPages.SPWebPartManager
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SPWebPartManager _
Inherits WebPartManager _
Implements IPostBackEventHandler
用法
Dim instance As SPWebPartManager
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SPWebPartManager : WebPartManager,
IPostBackEventHandler
备注
管理 Web 部件页上,任何 SharePoint 页面,其中包含 Web 部件必须具有SPWebPartManager的实例。与 Web 部件、 个性化和页上的区域中,为每个 Web 部件连接信息相关此对象跟踪编辑模式。
线程安全性
该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。