DataSourceExpression.SetContext Método

Definição

Define o contexto HTTP do objeto DataSourceExpression que usa o controle de proprietário, a instância HttpContext e o objeto IQueryableDataSource especificados.

public:
 virtual void SetContext(System::Web::UI::Control ^ owner, System::Web::HttpContext ^ context, System::Web::UI::WebControls::IQueryableDataSource ^ dataSource);
public virtual void SetContext (System.Web.UI.Control owner, System.Web.HttpContext context, System.Web.UI.WebControls.IQueryableDataSource dataSource);
abstract member SetContext : System.Web.UI.Control * System.Web.HttpContext * System.Web.UI.WebControls.IQueryableDataSource -> unit
override this.SetContext : System.Web.UI.Control * System.Web.HttpContext * System.Web.UI.WebControls.IQueryableDataSource -> unit
Public Overridable Sub SetContext (owner As Control, context As HttpContext, dataSource As IQueryableDataSource)

Parâmetros

owner
Control

O controle de proprietário do objeto de fonte de dados IQueryable.

context
HttpContext

O contexto de dados a ser usado.

dataSource
IQueryableDataSource

O objeto de fonte de dados IQueryable a ser usado.

Aplica-se a