Partilhar via


XmlConsoleDataSource Class

An implementation of the XmlConsoleDataSource object that generates data that is based on a specially designed XML configuration file.

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.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class XmlConsoleDataSource _
    Inherits ConsoleDataSource
'Usage
Dim instance As XmlConsoleDataSource
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class XmlConsoleDataSource : ConsoleDataSource

Remarks

The XmlConsoleDataSource object displays a hierarchical structure of actions to the author. This control is independent of the user interface (UI), which means that any UI can be developed to read this ConsoleDataSource object and display the actions. Examples of UIs that use this object include the PublishingMenu and QuickAccessMenu. A single XML that specifies how the actions should be structured populates each XmlConsoleDataSource object. This XML file includes the definitions for each action..

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

Reference

XmlConsoleDataSource Members

Microsoft.SharePoint.Publishing.WebControls Namespace

ConfigurationProvider