AcceptBreakpointManager 메서드
Passes a BreakpointManager reference to the Exec80PackageTask task. This method is called by the runtime and is not used in code.
네임스페이스: Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
어셈블리: Microsoft.SqlServer.Exec80PackageTask(Microsoft.SqlServer.Exec80PackageTask.dll)
구문
‘선언
Public Sub AcceptBreakpointManager ( _
breakPointMgr As BreakpointManager _
)
‘사용 방법
Dim instance As Exec80PackageTask
Dim breakPointMgr As BreakpointManager
instance.AcceptBreakpointManager(breakPointMgr)
public void AcceptBreakpointManager(
BreakpointManager breakPointMgr
)
public:
virtual void AcceptBreakpointManager(
BreakpointManager^ breakPointMgr
) sealed
abstract AcceptBreakpointManager :
breakPointMgr:BreakpointManager -> unit
override AcceptBreakpointManager :
breakPointMgr:BreakpointManager -> unit
public final function AcceptBreakpointManager(
breakPointMgr : BreakpointManager
)
매개 변수
- breakPointMgr
유형: Microsoft.SqlServer.Dts.Runtime. . :: . .BreakpointManager
The BreakpointManager reference to be passed.
구현
IDTSBreakpointSite. . :: . .AcceptBreakpointManager(BreakpointManager)
예
This method is overridden when you create a custom task.
The IDTSBreakpointSite interface defines this method, which is inherited by tasks and called by the runtime engine during task creation. The method takes the BreakpointManager object as a parameter, which is then used by each task to create and manage its breakpoints.
The following sample code demonstrates how to override the method when writing a custom task, creating a breakpoint using the BreakpointManager and calling the OnBreakpointHit method to raise the event. For more information, see 사용자 지정 태스크에 디버깅 지원 추가.
public void AcceptBreakpointManager( BreakpointManager breakPointManager )
{
// Store the breakpoint manager locally.
this.bpm = breakPointManager;
// Create a breakpoint.
this.bpm.CreateBreakPoint( 1 , "A sample breakpoint." );
}
public override DTSExecResult Execute( Connections connections, Variables variables, IDTSComponentEvents events, IDTSLogging log, DtsTransaction txn)
{
if( this.bpm.IsBreakpointTargetEnabled( 1 ) == true )
events.OnBreakpointHit( this.bpm.GetBreakpointTarget( 1 ) );
}
Public Sub AcceptBreakpointManager(ByVal breakPointManager As BreakpointManager)
' Store the breakpoint manager locally.
Me.bpm = breakPointManager
' Create a breakpoint.
Me.bpm.CreateBreakPoint(1 , "A sample breakpoint.")
End Sub
Public Overrides Function Execute(ByVal connections As Connections, ByVal variables As Variables, ByVal events As IDTSComponentEvents, ByVal log As IDTSLogging, ByVal txn As DtsTransaction) As DTSExecResult
If Me.bpm.IsBreakpointTargetEnabled(1) = True Then
events.OnBreakpointHit(Me.bpm.GetBreakpointTarget(1))
End If
End Function