BlogAdminWebPart class

Fornece um controle que exibe links administrativos para blogs. Essa classe não pode ser herdada.

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

'Declaração
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class BlogAdminWebPart _
    Inherits WebPart _
    Implements IListWebPart
'Uso
Dim instance As BlogAdminWebPart
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class BlogAdminWebPart : WebPart, 
    IListWebPart

Comentários

A propriedade Hidden não pode ser definida para true se a propriedade deIsStandAlone de Web Part'sé definida como true. A propriedade Visible não pode ser definida para false se a propriedade Web Part's IsStandAlone estiver definida como true. Se alguma dessas condições ocorrer, Microsoft ASP.NET irá acionar uma exceção.

Defina essas propriedades no evento OnLoad é após o viewState ter sido aplicada. mas antes de OnPreRender() como OnPreRender() não é chamada se visível = false

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.

Ver também

Referência

BlogAdminWebPart members

Microsoft.SharePoint.WebPartPages namespace