ObjectDataSource.GetView(String) 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 named data source view that is associated with the data source control.
protected:
override System::Web::UI::DataSourceView ^ GetView(System::String ^ viewName);
protected override System.Web.UI.DataSourceView GetView (string viewName);
override this.GetView : string -> System.Web.UI.DataSourceView
Protected Overrides Function GetView (viewName As String) As DataSourceView
Parameters
- viewName
- String
The name of the view to retrieve. Because the ObjectDataSource supports only one view, viewName
is ignored.
Returns
The ObjectDataSourceView named DefaultView
that is associated with the ObjectDataSource.
Exceptions
The specified viewName
is null
or something other than DefaultView
.
Remarks
The ObjectDataSource control supports only one data source view. As with all data source view objects, the ObjectDataSourceView that is associated with the data source control defines its capabilities, performs all the work that is necessary to retrieve data from the underlying data storage, and performs operations such as sorting, inserting, deleting, and updating.
The GetView method is intended to be called by data-bound controls, not by page code.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈