WebPartZone.OnInit method
處理Init事件。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Protected Overrides Sub OnInit ( _
e As EventArgs _
)
'用途
Dim e As EventArgs
Me.OnInit(e)
protected override void OnInit(
EventArgs e
)
參數
e
Type: System.EventArgs事件資料。
Exceptions
Exception | Condition |
---|---|
WebPartPageUserException | ID屬性是 null 或空白。 -或- 找不到目前的WebPartManager 。 |
備註
這個覆寫使用WebPartManager控制項註冊的區域。
如果 ID 屬性沒有任何值,或找不到目前的WebPartManager ,則這個覆寫將會擲回WebPartPageUserException() 。