WebPart.WebPartManager 属性

定义

获取对与 WebPartManager 控件实例关联的 WebPart 控件的引用。Gets a reference to the WebPartManager control associated with a WebPart control instance.

protected:
 property System::Web::UI::WebControls::WebParts::WebPartManager ^ WebPartManager { System::Web::UI::WebControls::WebParts::WebPartManager ^ get(); };
protected System.Web.UI.WebControls.WebParts.WebPartManager WebPartManager { get; }
member this.WebPartManager : System.Web.UI.WebControls.WebParts.WebPartManager
Protected ReadOnly Property WebPartManager As WebPartManager

属性值

WebPartManager 控件关联的 WebPartThe WebPartManager that is associated with a WebPart control.

注解

Web 部件页始终有一个 WebPartManager 控件的实例。A Web Parts page always has a single instance of a WebPartManager control. WebPartManager 控件用于跟踪和管理页上的所有其他 Web 部件控件,包括派生自基 WebZone 类的所有区域,以及派生自基 Part 类的所有部件控件。The WebPartManager control tracks and manages all the other Web Parts controls on a page, including all zones that derive from the base WebZone class, and all part controls that derive from the base Part class.

WebPartManager 属性存在,因此每个 WebPart 控件都可以与其 WebPartManager 控件相关联。The WebPartManager property exists so that every WebPart control can be associated with its WebPartManager control. 相反,WebPartManager 控件会在其 WebParts 集合中维护页面上所有 WebPart 控件的集合。The WebPartManager control, in turn, maintains a collection of all the WebPart controls on a page in its WebParts collection.

适用于

另请参阅