Condividi tramite


DataSourceExpression.SetContext Metodo

Definizione

Imposta il contesto HTTP dell'oggetto DataSourceExpression che utilizza il controllo proprietario specificato, l'istanza di HttpContext e l'oggetto IQueryableDataSource.

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)

Parametri

owner
Control

Controllo proprietario dell'oggetto origine dati IQueryable.

context
HttpContext

Contesto dei dati da utilizzare.

dataSource
IQueryableDataSource

Oggetto origine dati IQueryable da utilizzare.

Si applica a