Επεξεργασία

Κοινή χρήση μέσω


LinqDataSource.GetView(String) Method

Definition

Returns the data source view that is associated with the LinqDataSource object.

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, which must be "DefaultView".

Returns

The data source view that is associated with the LinqDataSource object.

Implements

Exceptions

viewName is null (Nothing in Visual Basic) or something other than "DefaultView".

Remarks

The LinqDataSource control supports only one data source view. The LinqDataSourceView object has a default name of "DefaultView". The LinqDataSourceView object defines the data source control's capabilities, retrieves data from the underlying database, and performs operations such as sort, insert, delete, and update.

Applies to

See also