共用方式為


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 控制項之控制項集合。

適用於