ObjectDataSourceView Constructor
Assembly: System.Web (in system.web.dll)
public:
ObjectDataSourceView (
ObjectDataSource^ owner,
String^ name,
HttpContext^ context
)
public ObjectDataSourceView ( ObjectDataSource owner, String name, HttpContext context )
public function ObjectDataSourceView ( owner : ObjectDataSource, name : String, context : HttpContext )
Parameters
- owner
The ObjectDataSourceView that the ObjectDataSourceView is associated with.
- name
A unique name for the data source view, within the scope of the data source control that owns it.
- context
The current HttpContext.
The ObjectDataSourceView constructor is called by the GetView method to return a new instance of a data source view with the specified viewName parameter. The ObjectDataSource control is associated with only one ObjectDataSourceView at any time, and always names the view DefaultView, although this naming restriction is imposed by the ObjectDataSource control, not the ObjectDataSourceView. You can override the GetView method to support views with a different naming convention.
The HttpContext object that is passed by context is used by the data source view to access parameter objects, such as FilterParameters and SelectParameters properties.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.