다음을 통해 공유


DefaultEvents.OnQueryCancel 메서드

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(Microsoft.SqlServer.ManagedDTS.dll)

구문

‘선언
Public Overridable Function OnQueryCancel As Boolean
‘사용 방법
Dim instance As DefaultEvents 
Dim returnValue As Boolean 

returnValue = instance.OnQueryCancel()
public virtual bool OnQueryCancel()
public:
virtual bool OnQueryCancel()
abstract OnQueryCancel : unit -> bool  
override OnQueryCancel : unit -> bool
public function OnQueryCancel() : boolean

반환 값

유형: System.Boolean
A Boolean that indicates if the task should stop running.

구현

IDTSEvents.OnQueryCancel()

주의

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.

참고 항목

참조

DefaultEvents 클래스

Microsoft.SqlServer.Dts.Runtime 네임스페이스