HierarchicalDataBoundControl.GetDataSource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the IHierarchicalDataSource that the data-bound control is associated with, if any.
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
Returns
An IHierarchicalDataSource instance that represents the data source identified by the DataSourceID property.
Exceptions
The data source control identified by the DataSourceID property does not exist in the current container.
-or-
The data source control identified by the DataSourceID property does not implement the IHierarchicalDataSource interface.
Remarks
The GetData method calls the GetDataSource method internally.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om