共用方式為


ServerReport.IsQueryExecutionAllowed 方法

指出報表是否能夠執行查詢。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)

語法

'宣告
Public Function IsQueryExecutionAllowed As Boolean
public bool IsQueryExecutionAllowed()
public:
bool IsQueryExecutionAllowed()
member IsQueryExecutionAllowed : unit -> bool 
public function IsQueryExecutionAllowed() : boolean

傳回值

類型:Boolean
指出報表是否能夠執行查詢的 Boolean 值。

備註

如果是從快照集執行,便傳回 false。

這可用來判斷報表是否能夠針對報表資料或參數的有效值或預設值來執行查詢。

請參閱

參考

ServerReport 類別

Microsoft.Reporting.WebForms 命名空間