Bewerken

Delen via


ObjectDataSourceView(ObjectDataSource, String, HttpContext) Constructor

Definition

Initializes a new instance of the ObjectDataSourceView class.

public:
 ObjectDataSourceView(System::Web::UI::WebControls::ObjectDataSource ^ owner, System::String ^ name, System::Web::HttpContext ^ context);
public ObjectDataSourceView (System.Web.UI.WebControls.ObjectDataSource owner, string name, System.Web.HttpContext context);
new System.Web.UI.WebControls.ObjectDataSourceView : System.Web.UI.WebControls.ObjectDataSource * string * System.Web.HttpContext -> System.Web.UI.WebControls.ObjectDataSourceView
Public Sub New (owner As ObjectDataSource, name As String, context As HttpContext)

Parameters

owner
ObjectDataSource

The ObjectDataSourceView that the ObjectDataSourceView is associated with.

name
String

A unique name for the data source view, within the scope of the data source control that owns it.

context
HttpContext

The current HttpContext.

Remarks

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.

Applies to

See also