共用方式為


WebPartAddingEventArgs(WebPart, WebPartZoneBase, Int32) 建構函式

定義

初始化 WebPartAddingEventArgs 類別的新執行個體。

public:
 WebPartAddingEventArgs(System::Web::UI::WebControls::WebParts::WebPart ^ webPart, System::Web::UI::WebControls::WebParts::WebPartZoneBase ^ zone, int zoneIndex);
public WebPartAddingEventArgs (System.Web.UI.WebControls.WebParts.WebPart webPart, System.Web.UI.WebControls.WebParts.WebPartZoneBase zone, int zoneIndex);
new System.Web.UI.WebControls.WebParts.WebPartAddingEventArgs : System.Web.UI.WebControls.WebParts.WebPart * System.Web.UI.WebControls.WebParts.WebPartZoneBase * int -> System.Web.UI.WebControls.WebParts.WebPartAddingEventArgs
Public Sub New (webPart As WebPart, zone As WebPartZoneBase, zoneIndex As Integer)

參數

webPart
WebPart

要加入至網頁或在頁面上開啟的 WebPart (或伺服器或使用者控制項)。

zone
WebPartZoneBase

webPart 正在加入至的 WebPartZoneBase

zoneIndex
Int32

整數,表示 webPartzone 佔用的序號位置,相對於 zone 中的其他控制項。

適用於