ConsoleDataSource Class
Represents a hierarchical data source control consisting of a tree of ConsoleNode objects corresponding to console actions.
Inheritance Hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource
Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class ConsoleDataSource _
Inherits WebControl _
Implements IHierarchicalDataSource
'Usage
Dim instance As ConsoleDataSource
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class ConsoleDataSource : WebControl,
IHierarchicalDataSource
Remarks
Use the ConsoleDataSource class to provide access to console actions on a Web page; for example, an editing menu, quick access menu, or site actions menu.
Before the data is passed to the Web interface, all security trimming and contextual disabling occurs during the processing of this control. Security trimming occurs during the OnLoad(EventArgs) phase of the lifecycle, while context trimming occurs during OnPreRender(EventArgs) in order to evaluate the values after a possible postback has occurred.
A ConsoleDataSource class requires a root ConsoleNode object. This root serves as the basis of the hierarchy of console actions that are returned.
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.