This documentation is archived and is not being maintained.

LinqDataSource.GetView Method

Visual Studio 2008

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

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

protected override DataSourceView GetView(
	string viewName
)

Parameters

viewName
Type: System.String

The name of the view to retrieve, which must be "DefaultView".

Return Value

Type: System.Web.UI.DataSourceView
The data source view that is associated with the LinqDataSource object.

ExceptionCondition
ArgumentException

viewName is null or something other than "DefaultView".

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: