Container that governs whether contained controls are displayed, based on user preference and page state.
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 sealed class ConsoleVisibilityContainer : WebControl
Some controls are more appropriate to show to the user based on when the page is in specific states. This container determines visibility of a control based on three scenarios:
Whether an error has just occurred.
Whether the user has chosen to view the Page Editing toolbar.
Whether the page is published.
When this control is placed on the page, the page designer can decide in which of these scenarios to show the controls within the container. Contained controls are always displayed if any one of the selected scenarios occurs.