HierarchicalDataBoundControl.GetDataSource Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère le IHierarchicalDataSource contrôle lié aux données associé, le cas échéant.
protected:
virtual System::Web::UI::IHierarchicalDataSource ^ GetDataSource();
protected virtual System.Web.UI.IHierarchicalDataSource GetDataSource();
abstract member GetDataSource : unit -> System.Web.UI.IHierarchicalDataSource
override this.GetDataSource : unit -> System.Web.UI.IHierarchicalDataSource
Protected Overridable Function GetDataSource () As IHierarchicalDataSource
Retours
Instance IHierarchicalDataSource qui représente la source de données identifiée par la DataSourceID propriété.
Exceptions
Le contrôle de source de données identifié par la DataSourceID propriété n’existe pas dans le conteneur actuel.
- ou -
Le contrôle de source de données identifié par la DataSourceID propriété n’implémente pas l’interface IHierarchicalDataSource .
Remarques
La GetData méthode appelle la GetDataSource méthode en interne.