.NET Framework Class Library SiteMapDataSourceView Class

Inheritance Hierarchy
Namespace:
System.Web.UI.WebControls
Assembly:
System.Web (in System.Web.dll)

Syntax
Public Class SiteMapDataSourceView _
Inherits DataSourceView
public class SiteMapDataSourceView : DataSourceView
public ref class SiteMapDataSourceView : public DataSourceView
type SiteMapDataSourceView =
class
inherit DataSourceView
end
The SiteMapDataSourceView type exposes the following members.

Constructors

Properties

Methods

Events

Remarks
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.

Version Information
.NET FrameworkSupported in: 4, 3.5, 3.0, 2.0

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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
|
Bibliothèque de classes .NET Framework SiteMapDataSourceView, classe

Hiérarchie d'héritage
Espace de noms :
System.Web.UI.WebControls
Assembly :
System.Web (dans System.Web.dll)

Syntaxe
Public Class SiteMapDataSourceView _
Inherits DataSourceView
public class SiteMapDataSourceView : DataSourceView
public ref class SiteMapDataSourceView : public DataSourceView
type SiteMapDataSourceView =
class
inherit DataSourceView
end
Le type SiteMapDataSourceView expose les membres suivants.

Constructeurs

Propriétés

Méthodes

Événements

Notes
Le contrôle SiteMapDataSource active les contrôles liés aux données ASP.NET, tels que les contrôles TreeView et Menu, à lier aux données de plan de site. La classe SiteMapDataSourceView est utilisée par les développeurs de contrôles, mais pas par les développeurs de pages ni dans le code de page. Le contrôle SiteMapDataSource retourne SiteMapDataSourceView pour un chemin d'accès hiérarchique spécifié lorsque la méthode Select est appelée. Comme tous les objets de vue de source de données hiérarchiques, SiteMapDataSourceView n'est pas nommé ; il est identifié par son chemin d'accès hiérarchique unique. La classe SiteMapDataSourceView est une classe wrapper sur une collection SiteMapNodeCollection. La classe SiteMapNodeCollection implémente l'interface IHierarchicalEnumerable qui est retournée par la classe SiteMapDataSourceView lorsque la méthode Select est appelée. Étant donné que SiteMapDataSource et SiteMapDataSourceView utilisent des objets SiteMapNode, la vue gère une collection SiteMapNodeCollection interne pour les contenir. La collection est initialisée à l'aide des constructeurs de la vue et est accessible avec la méthode Select()()().

Informations de version
.NET FrameworkPris en charge dans : 4, 3.5, 3.0, 2.0

Plateformes
Windows 7, Windows Vista SP1 ou ultérieur, Windows XP SP3, Windows XP SP2 Édition x64, Windows Server 2008 (installation minimale non prise en charge), Windows Server 2008 R2 (installation minimale prise en charge avec SP1 ou version ultérieure), Windows Server 2003 SP2
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

Sécurité des threads
Tous les membres static ( Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Voir aussi
RéférenceAutres ressources
|