Export (0) Print
Expand All

SiteMapDataSourceView Class

Note: This class is new in the .NET Framework version 2.0.

Provides a strongly typed HierarchicalDataSourceView object for the SiteMapDataSource control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public class SiteMapDataSourceView : DataSourceView
public class SiteMapDataSourceView extends DataSourceView
public class SiteMapDataSourceView extends DataSourceView

The SiteMapDataSource control enables ASP.NET data-bound controls, such as the TreeView and Menu controls, to bind to site map data. The SiteMapDataSourceView class is used by controls developers but it is not used by page developers nor in page code.

The SiteMapDataSource returns a SiteMapDataSourceView for a specified hierarchical path when the Select method is called. Like all hierarchical data source view objects, the SiteMapDataSourceView is not named; rather, its is identified by its unique hierarchical path.

The SiteMapDataSourceView is a wrapper class on a SiteMapNodeCollection collection. The SiteMapNodeCollection class implements the IHierarchicalEnumerable interface, which the SiteMapDataSourceView class returns from a call to Select method. Because the SiteMapDataSource and SiteMapDataSourceView work with SiteMapNode objects, the view maintains an internal SiteMapNodeCollection to contain them. The collection is initialized using the view's constructors and accessed with the Select method.

System.Object
   System.Web.UI.DataSourceView
    System.Web.UI.WebControls.SiteMapDataSourceView

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft