Επεξεργασία

Κοινή χρήση μέσω


WebPart.WebPartManager Property

Definition

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

Property Value

The WebPartManager that is associated with a WebPart control.

Remarks

A Web Parts page always has a single instance of a WebPartManager control. 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.

The WebPartManager property exists so that every WebPart control can be associated with its WebPartManager control. The WebPartManager control, in turn, maintains a collection of all the WebPart controls on a page in its WebParts collection.

Applies to

See also