BlogAdminWebPart class
提供會顯示系統管理連結的部落格的控制項。無法繼承這個類別。
Inheritance hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.Panel
System.Web.UI.WebControls.WebParts.Part
System.Web.UI.WebControls.WebParts.WebPart
Microsoft.SharePoint.WebPartPages.WebPart
Microsoft.SharePoint.WebPartPages.BlogAdminWebPart
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class BlogAdminWebPart _
Inherits WebPart _
Implements IListWebPart
'用途
Dim instance As BlogAdminWebPart
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class BlogAdminWebPart : WebPart,
IListWebPart
備註
Hidden屬性不能設定為true ,如果Web Part'sIsStandAlone屬性設定為 true。Visible屬性不能設定為false ,如果Web Part's IsStandAlone屬性設定為 true。如果兩種狀況發生時,Microsoft ASP.NET 將會擲回例外狀況。
因此套用viewState之後,請在OnLoad事件設定這些屬性。之前OnPreRender()因為如果看得到,不會呼叫OnPreRender() =
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.