Compartir a través de


DataSourceExpression.SetContext Método

Definición

Establece el contexto HTTP del objeto DataSourceExpression que usa el control propietario, la instancia de HttpContext y el 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

Control propietario del objeto de origen de datos IQueryable.

context
HttpContext

Contexto de datos que se va a usar.

dataSource
IQueryableDataSource

Objeto de origen de datos IQueryable que se va a usar.

Se aplica a