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

向其添加 webPartWebPartZoneBase

zoneIndex
Int32

一个整数,表示 webPartzone 中占用的序号位置(相对于 zone 中的其他控件)。

适用于