DynamicFilterExpression.SetContext(Control, HttpContext, IQueryableDataSource) DynamicFilterExpression.SetContext(Control, HttpContext, IQueryableDataSource) DynamicFilterExpression.SetContext(Control, HttpContext, IQueryableDataSource) DynamicFilterExpression.SetContext(Control, HttpContext, IQueryableDataSource) Method

定義

使用資料來源資訊初始化運算式。Initializes the expression with data source information.

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

參數

owner
Control Control Control Control

包含 DynamicFilterExpression 執行個體的控制項,例如 QueryExtender 控制項。The control that contains the DynamicFilterExpression instance, such as the QueryExtender control.

context
HttpContext HttpContext HttpContext HttpContext

目前的 HttpContextThe current HttpContext object.

dataSource
IQueryableDataSource IQueryableDataSource IQueryableDataSource IQueryableDataSource

DynamicFilterExpression 執行個體的目標資料來源。The target data source for the DynamicFilterExpression instance.

適用於