다음을 통해 공유


IDTSEvents100.OnQueryCancel 메서드

이 API는 SQL Server 2012 인프라를 지원하기 위한 것으로 코드에서 직접 사용할 수 없습니다.

Indicates a method 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.Wrapper
어셈블리:  Microsoft.SqlServer.DTSRuntimeWrap(Microsoft.SqlServer.DTSRuntimeWrap.dll)

구문

‘선언
Sub OnQueryCancel ( _
    <OutAttribute> ByRef pbCancel As Boolean _
)
‘사용 방법
Dim instance As IDTSEvents100 
Dim pbCancel As Boolean

instance.OnQueryCancel(pbCancel)
void OnQueryCancel(
    out bool pbCancel
)
void OnQueryCancel(
    [OutAttribute] bool% pbCancel
)
abstract OnQueryCancel : 
        pbCancel:bool byref -> unit
function OnQueryCancel(
    pbCancel : boolean
)

매개 변수

  • pbCancel
    유형: System.Boolean%
    true to cancel the query; otherwise, false.

주의

This event is called by the task to determine if the package wishes 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 may inform the task that it is attempting to shut down. If the value is true, the task should shut down and a cancelled message is returned from the Execute method of the task. If the value is false, the task continues to run as usual.

For more information, see IDTSEvents.

참고 항목

참조

IDTSEvents100 인터페이스

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