DefaultEvents.OnQueryCancel Method
This method is called at any juncture in task processing where it is feasible to cancel execution. This event is raised by tasks and containers to determine whether they should stop running.
命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
語法
'宣告
Public Overridable Function OnQueryCancel As Boolean
public virtual bool OnQueryCancel ()
public:
virtual bool OnQueryCancel ()
public boolean OnQueryCancel ()
public function OnQueryCancel () : boolean
傳回值
A Boolean that indicates if the task should stop running.
備註
This event is called by the task to determine if the package wants the task to cease executing. Because the package gives control to the task to execute and does not terminate tasks randomly, there needs to be a juncture at which the package can inform the task that it is attempting to shut down. If the value is true, the task should shut down and DTSER_CANCELED is returned from the Execute method of the task. If the value is false, the task continues to run as usual.
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
DefaultEvents Class
DefaultEvents Members
Microsoft.SqlServer.Dts.Runtime Namespace