Compartir a través de


IDTSBreakpointSite.AcceptBreakpointManager(BreakpointManager) Método

Definición

Pasa una clase BreakpointManager a una tarea. La tarea utilizará el administrador de puntos de interrupción para crear, quitar y comprobar el estado de puntos de interrupción. El motor en tiempo de ejecución llama a este método, que no se usa en el código.

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)

Parámetros

breakpointManager
BreakpointManager

El administrador de puntos de interrupción concreto para esta tarea.

Ejemplos

Este método se invalida si crea una tarea personalizada. En el código de ejemplo siguiente se muestra cómo crear un punto de interrupción mediante BreakpointManager y llamar al OnBreakpointHit método para generar el evento.

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  

Se aplica a