Suggérer une traduction
 
Suggestions d'autres utilisateurs :

progress indicator
Aucune autre suggestion.
Cliquez pour évaluer et commenter
MSDN
MSDN Library
Développement .NET
.NET Framework 4
Espaces de noms System.Web
System.Web.UI.WebControls
SiteMapDataSourceView, classe
Réduire tout/Développer tout Réduire tout
Affichage du contenu :  côte à côteAffichage du contenu : côte à côte
.NET Framework Class Library
SiteMapDataSourceView Class

Provides a strongly typed HierarchicalDataSourceView object for the SiteMapDataSource control.

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

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)
Visual Basic
Public Class SiteMapDataSourceView _
    Inherits DataSourceView
C#
public class SiteMapDataSourceView : DataSourceView
Visual C++
public ref class SiteMapDataSourceView : public DataSourceView
F#
type SiteMapDataSourceView =  
    class
        inherit DataSourceView
    end

The SiteMapDataSourceView type exposes the following members.

  NameDescription
Public methodSiteMapDataSourceView(SiteMapDataSource, String, SiteMapNode)Initializes a new named instance of the SiteMapDataSourceView class, adding the single specified node to the internal collection of nodes.
Public methodSiteMapDataSourceView(SiteMapDataSource, String, SiteMapNodeCollection)Initializes a new named instance of the SiteMapDataSourceView class, setting the internal collection of nodes to the specified node collection.
Top
  NameDescription
Public propertyCanDeleteGets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports the ExecuteDelete operation. (Inherited from DataSourceView.)
Public propertyCanInsertGets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports the ExecuteInsert operation. (Inherited from DataSourceView.)
Public propertyCanPageGets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports paging through the data retrieved by the ExecuteSelect method. (Inherited from DataSourceView.)
Public propertyCanRetrieveTotalRowCountGets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports retrieving the total number of data rows, instead of the data. (Inherited from DataSourceView.)
Public propertyCanSortGets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports a sorted view on the underlying data source. (Inherited from DataSourceView.)
Public propertyCanUpdateGets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports the ExecuteUpdate operation. (Inherited from DataSourceView.)
Protected propertyEventsGets a list of event-handler delegates for the data source view. (Inherited from DataSourceView.)
Public propertyNameGets the name of the data source view. (Inherited from DataSourceView.)
Top
  NameDescription
Public methodCanExecuteDetermines whether the specified command can be executed. (Inherited from DataSourceView.)
Public methodDeletePerforms an asynchronous delete operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodExecuteCommand(String, IDictionary, IDictionary)Executes the specified command. (Inherited from DataSourceView.)
Public methodExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)Executes the specified command. (Inherited from DataSourceView.)
Protected methodExecuteDeletePerforms a delete operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected methodExecuteInsertPerforms an insert operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected methodExecuteSelectGets the collection of the SiteMapNode objects that represents the site navigation structure for the current user. (Overrides DataSourceView..::.ExecuteSelect(DataSourceSelectArguments).)
Protected methodExecuteUpdatePerforms an update operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInsertPerforms an asynchronous insert operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnDataSourceViewChangedRaises the DataSourceViewChanged event. (Overrides DataSourceView..::.OnDataSourceViewChanged(EventArgs).)
Protected methodRaiseUnsupportedCapabilityErrorCalled by the RaiseUnsupportedCapabilitiesError method to compare the capabilities requested for an ExecuteSelect operation against those that the view supports. (Inherited from DataSourceView.)
Public methodSelect(DataSourceSelectArguments)Gets the collection of the SiteMapNode objects that represents the site navigation structure for the current user.
Public methodSelect(DataSourceSelectArguments, DataSourceViewSelectCallback)Gets a list of data asynchronously from the underlying data storage. (Inherited from DataSourceView.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodUpdatePerforms an asynchronous update operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Top
  NameDescription
Public eventDataSourceViewChangedOccurs when the data source view has changed. (Inherited from DataSourceView.)
Top

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Bibliothèque de classes .NET Framework
SiteMapDataSourceView, classe

Fournit un objet HierarchicalDataSourceView fortement typé pour le contrôle SiteMapDataSource.

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

Espace de noms :  System.Web.UI.WebControls
Assembly :  System.Web (dans System.Web.dll)
Visual Basic
Public Class SiteMapDataSourceView _
    Inherits DataSourceView
C#
public class SiteMapDataSourceView : DataSourceView
VisualC++
public ref class SiteMapDataSourceView : public DataSourceView
F#
type SiteMapDataSourceView =  
    class
        inherit DataSourceView
    end

Le type SiteMapDataSourceView expose les membres suivants.

  NomDescription
Méthode publiqueSiteMapDataSourceView(SiteMapDataSource, String, SiteMapNode)Initialise une nouvelle instance nommée de la classe SiteMapDataSourceView, en ajoutant le nœud unique spécifié à la collection de nœuds interne.
Méthode publiqueSiteMapDataSourceView(SiteMapDataSource, String, SiteMapNodeCollection)Initialise une nouvelle instance nommée de la classe SiteMapDataSourceView, en définissant la collection de nœuds interne sur la collection de nœuds spécifiée.
Début
  NomDescription
Propriété publiqueCanDeleteObtient une valeur indiquant si l'objet DataSourceView associé à l'objet DataSourceControl actif prend en charge l'opération ExecuteDelete. (Hérité de DataSourceView.)
Propriété publiqueCanInsertObtient une valeur indiquant si l'objet DataSourceView associé à l'objet DataSourceControl en cours prend en charge l'opération ExecuteInsert. (Hérité de DataSourceView.)
Propriété publiqueCanPageObtient une valeur indiquant si l'objet DataSourceView associé à l'objet en cours DataSourceControl prend en charge la consultation des données récupérées par la méthode ExecuteSelect. (Hérité de DataSourceView.)
Propriété publiqueCanRetrieveTotalRowCountObtient une valeur qui indique si l'objet DataSourceView associé à l'objet en cours DataSourceControl prend en charge la récupération du nombre total de lignes au lieu des données. (Hérité de DataSourceView.)
Propriété publiqueCanSortObtient une valeur indiquant si l'objet DataSourceView associé à l'objet en cours DataSourceControl prend en charge un affichage trié de la source de données sous-jacente. (Hérité de DataSourceView.)
Propriété publiqueCanUpdateObtient une valeur indiquant si l'objet DataSourceView associé à l'objet DataSourceControl en cours prend en charge l'opération ExecuteUpdate. (Hérité de DataSourceView.)
Propriété protégéeEventsObtient la liste des délégués de gestion d'événements pour l'affichage de source de données. (Hérité de DataSourceView.)
Propriété publiqueNameObtient le nom de l'affichage de source de données. (Hérité de DataSourceView.)
Début
  NomDescription
Méthode publiqueCanExecuteDétermine si la commande spécifiée peut être exécutée. (Hérité de DataSourceView.)
Méthode publiqueDeleteExécute une opération de suppression asynchrone sur la liste des données que l'objet DataSourceView représente. (Hérité de DataSourceView.)
Méthode publiqueEquals(Object)Détermine si l'Object spécifié est égal à l'Object en cours. (Hérité de Object.)
Méthode protégéeExecuteCommand(String, IDictionary, IDictionary)Exécute la commande spécifiée. (Hérité de DataSourceView.)
Méthode publiqueExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)Exécute la commande spécifiée. (Hérité de DataSourceView.)
Méthode protégéeExecuteDeleteExécute une opération de suppression sur la liste des données que l'objet DataSourceView représente. (Hérité de DataSourceView.)
Méthode protégéeExecuteInsertExécute une opération d'insertion dans la liste des données que l'objet DataSourceView représente. (Hérité de DataSourceView.)
Méthode protégéeExecuteSelectObtient la collection des objets SiteMapNode qui représente la structure de navigation de site pour l'utilisateur actuel. (Substitue DataSourceView..::.ExecuteSelect(DataSourceSelectArguments).)
Méthode protégéeExecuteUpdateExécute une opération de mise à jour dans la liste des données que l'objet DataSourceView représente. (Hérité de DataSourceView.)
Méthode protégéeFinalizeAutorise un objet à tenter de libérer des ressources et d'exécuter d'autres opérations de netto***ge avant qu'il ne soit récupéré par l'opération garbage collection. (Hérité de Object.)
Méthode publiqueGetHashCodeSert de fonction de hachage pour un type particulier. (Hérité de Object.)
Méthode publiqueGetTypeObtient le Type de l'instance actuelle. (Hérité de Object.)
Méthode publiqueInsertExécute une opération d'insertion asynchrone dans la liste des données que l'objet DataSourceView représente. (Hérité de DataSourceView.)
Méthode protégéeMemberwiseCloneCrée une copie superficielle de l'objet Object actif. (Hérité de Object.)
Méthode protégéeOnDataSourceViewChangedDéclenche l'événement DataSourceViewChanged. (Substitue DataSourceView..::.OnDataSourceViewChanged(EventArgs).)
Méthode protégéeRaiseUnsupportedCapabilityErrorAppelé par la méthode RaiseUnsupportedCapabilitiesError pour comparer les fonctions demandées pour une opération ExecuteSelect à celles prises en charge par l'affichage. (Hérité de DataSourceView.)
Méthode publiqueSelect(DataSourceSelectArguments)Obtient la collection des objets SiteMapNode qui représente la structure de navigation de site pour l'utilisateur actuel.
Méthode publiqueSelect(DataSourceSelectArguments, DataSourceViewSelectCallback)Obtient une liste de données en mode asynchrone provenant du stockage des données sous-jacent. (Hérité de DataSourceView.)
Méthode publiqueToStringRetourne une chaîne qui représente l'objet actuel. (Hérité de Object.)
Méthode publiqueUpdateExécute une opération de mise à jour asynchrone dans la liste des données que l'objet DataSourceView représente. (Hérité de DataSourceView.)
Début
  NomDescription
Événement publicDataSourceViewChangedSe produit lorsque l'affichage de source de données a été modifié. (Hérité de DataSourceView.)
Début

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()()().

.NET Framework

Pris en charge dans : 4, 3.5, 3.0, 2.0

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.
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.
Contenu de la communauté   Qu'est-ce que le Contenu de la communauté ?
Ajouter du contenu RSS  Annotations
Processing
© 2012 Microsoft. Tous droits réservés. Conditions d'utilisation | Marques | Confidentialité
Page view tracker