This documentation is archived and is not being maintained.

LinqDataSourceView Constructor

Initializes a new instance of the LinqDataSourceView class, setting the specified LinqDataSource control as the owner of the current view.

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

public:
LinqDataSourceView(
	LinqDataSource^ owner, 
	String^ name, 
	HttpContext^ context
)

Parameters

owner
Type: System.Web.UI.WebControls::LinqDataSource
The data source control that the LinqDataSourceView object is associated with.
name
Type: System::String
A unique name for the data source view within the scope of the data source control that owns it.
context
Type: System.Web::HttpContext
The current HttpContext instance.

The LinqDataSourceView constructor is called by the GetView(String) method to return a new instance of a data source view with the specified name parameter. Only one LinqDataSourceView object is associated with a LinqDataSource control at a time. The name of the LinqDataSourceView object is always DefaultView, although this naming restriction is imposed by the LinqDataSource control, not by the LinqDataSourceView control. You can override the LinqDataSourceGetView(String) method to support views that use a different naming convention.

The HttpContext instance that is passed by the context parameter is used by the data source view to access parameter collections.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: