ServerReport.IsQueryExecutionAllowed 方法
指出報表是否能夠執行查詢。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)
語法
'宣告
Public Function IsQueryExecutionAllowed As Boolean
public bool IsQueryExecutionAllowed()
public:
bool IsQueryExecutionAllowed()
member IsQueryExecutionAllowed : unit -> bool
public function IsQueryExecutionAllowed() : boolean
傳回值
類型:Boolean
指出報表是否能夠執行查詢的 Boolean 值。
備註
如果是從快照集執行,便傳回 false。
這可用來判斷報表是否能夠針對報表資料或參數的有效值或預設值來執行查詢。