WebPartManagerInternals.AddWebPart(WebPart) 方法

定义

将一个 WebPart 或服务器控件添加到网页上的 WebPartManager 控件的 WebPart 控件集合中。

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

参数

webPart
WebPart

被添加到 WebPart 控件的控件集合中的 WebPartManager

适用于