ObjectDataSourceView(ObjectDataSource, String, HttpContext) Construtor
Definição
Inicializa uma nova instância da classe ObjectDataSourceView.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)
Parâmetros
- owner
- ObjectDataSource
A ObjectDataSourceView à qual a ObjectDataSourceView está associada.The ObjectDataSourceView that the ObjectDataSourceView is associated with.
- name
- String
Um nome exclusivo para a exibição de fonte de dados dentro do escopo do controle de fonte de dados ao qual ele pertence.A unique name for the data source view, within the scope of the data source control that owns it.
- context
- HttpContext
O HttpContext atual.The current HttpContext.
Comentários
O ObjectDataSourceView Construtor é chamado pelo GetView método para retornar uma nova instância de uma exibição da fonte de dados com o viewName parâmetro especificado.The ObjectDataSourceView constructor is called by the GetView method to return a new instance of a data source view with the specified viewName parameter. O ObjectDataSource controle é associado a apenas um a ObjectDataSourceView qualquer momento e sempre nomeia a exibição DefaultView , embora essa restrição de nomenclatura seja imposta pelo ObjectDataSource controle, não pelo ObjectDataSourceView .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. Você pode substituir o GetView método para dar suporte a exibições com uma Convenção de nomenclatura diferente.You can override the GetView method to support views with a different naming convention.
O HttpContext objeto que é passado pelo context é usado pela exibição da fonte de dados para acessar objetos de parâmetro, FilterParameters como SelectParameters Propriedades e.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.