Muokkaa

Jaa


WebPartManagerInternals.RemoveWebPart(WebPart) Method

Definition

Removes a WebPart or other server control from the WebPartManager control's collection of controls.

public:
 void RemoveWebPart(System::Web::UI::WebControls::WebParts::WebPart ^ webPart);
public void RemoveWebPart (System.Web.UI.WebControls.WebParts.WebPart webPart);
member this.RemoveWebPart : System.Web.UI.WebControls.WebParts.WebPart -> unit
Public Sub RemoveWebPart (webPart As WebPart)

Parameters

webPart
WebPart

A WebPart or other server control to be removed.

Remarks

Removes webPart from the current WebPartManager control's collection of Web Parts controls that it maintains for the page.

Applies to

See also