다음을 통해 공유


IDTSBreakpointSite.AcceptBreakpointManager(BreakpointManager) 메서드

정의

BreakpointManager를 태스크에 전달합니다. 태스크는 중단점 관리자를 사용하여 중단점을 만들고 제거하며, 중단점 상태를 확인합니다. 이 메서드는 런타임을 통해 호출되며 코드에 사용되지 않습니다.

public:
 void AcceptBreakpointManager(Microsoft::SqlServer::Dts::Runtime::BreakpointManager ^ breakpointManager);
public void AcceptBreakpointManager (Microsoft.SqlServer.Dts.Runtime.BreakpointManager breakpointManager);
abstract member AcceptBreakpointManager : Microsoft.SqlServer.Dts.Runtime.BreakpointManager -> unit
Public Sub AcceptBreakpointManager (breakpointManager As BreakpointManager)

매개 변수

breakpointManager
BreakpointManager

이 태스크에 관련된 중단점 관리자입니다.

예제

사용자 지정 작업을 만드는 경우 이 메서드가 재정의됩니다. 다음 샘플 코드에서는 이벤트를 발생시킬 메서드를 BreakpointManager 사용하여 중단점을 만들고 호출 OnBreakpointHit 하는 방법을 보여 줍니다.

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  

적용 대상