AuthoringContainer class

Container control used to display or hide authoring components on a Web page, based on the current context.

Inheritance hierarchy


Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)


<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class AuthoringContainer _
    Inherits WebControl
Dim instance As AuthoringContainer
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class AuthoringContainer : WebControl


Some controls on a Web page are intended for use by authors or other users who have permissions to modify or review content. For other users of the Web site, such as readers with restricted permissions, these controls should not be displayed. Placing controls inside an AuthoringContainer on a page will ensure that the contained controls do not render for users who do not have rights to edit a page.

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.

See also


AuthoringContainer members

Microsoft.SharePoint.Publishing.WebControls namespace