Package.GetBreakpointTargets(IDTSBreakpointSite, Boolean) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
BreakpointTargets コレクションを返します。
onlyEnabledパラメータの設定によって、コレクションにはパッケージ内のすべてのブレークポイントターゲットが含まれているか、有効化されたブレークポイントターゲットのみが含まれます。
public:
Microsoft::SqlServer::Dts::Runtime::BreakpointTargets ^ GetBreakpointTargets(Microsoft::SqlServer::Dts::Runtime::IDTSBreakpointSite ^ bpSite, bool onlyEnabled);
public Microsoft.SqlServer.Dts.Runtime.BreakpointTargets GetBreakpointTargets(Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite bpSite, bool onlyEnabled);
member this.GetBreakpointTargets : Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite * bool -> Microsoft.SqlServer.Dts.Runtime.BreakpointTargets
Public Function GetBreakpointTargets (bpSite As IDTSBreakpointSite, onlyEnabled As Boolean) As BreakpointTargets
パラメーター
- bpSite
- IDTSBreakpointSite
IDTSBreakpointSite インターフェイスを実装するオブジェクト。
- onlyEnabled
- Boolean
コレクションに含めるブレークポイントターゲットの種類を示すブール値です。 trueは有効ブレークポイントのみがコレクションに含まれることを示し、falseはすべてのブレークポイントターゲットがコレクションに含まれることを示します。
返品
BreakpointTargets コレクション。
例
以下のコードサンプルは、 GetBreakpointTargets を使ってパッケージ内のブレークポイントの集合を取得する方法を示しています。
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Dts.Runtime;
using Microsoft.SqlServer.Dts.Tasks.BulkInsertTask;
namespace Breakpoint_API
{
class Program
{
static void Main(string[] args)
{
Package pkg = new Package();
TaskHost taskHost = (TaskHost)pkg.Executables.Add("STOCK:FileSystemTask");
BreakpointTargets bptargets = pkg.GetBreakpointTargets(taskHost, false);
foreach (BreakpointTarget bpt in bptargets)
{
Console.WriteLine("BreakOnExpressionChange? {0}", bpt.BreakOnExpressionChange.ToString());
Console.WriteLine("Description {0}", bpt.Description);
Console.WriteLine("Enabled? {0}", bpt.Enabled);
Console.WriteLine("HitCount {0}", bpt.HitCount);
Console.WriteLine("HitTarget {0}", bpt.HitTarget);
Console.WriteLine("HitTest {0}", bpt.HitTest);
Console.WriteLine("ID {0}", bpt.ID);
Console.WriteLine("Owner {0}", bpt.Owner);
}
}
}
}
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.SqlServer.Dts.Runtime
Imports Microsoft.SqlServer.Dts.Tasks.BulkInsertTask
Namespace Breakpoint_API
Class Program
Shared Sub Main(ByVal args() As String)
Dim pkg As Package = New Package()
Dim taskHost As TaskHost = CType(pkg.Executables.Add("STOCK:FileSystemTask"), TaskHost)
Dim bptargets As BreakpointTargets = pkg.GetBreakpointTargets(taskHost,False)
Dim bpt As BreakpointTarget
For Each bpt In bptargets
Console.WriteLine("BreakOnExpressionChange? {0}", bpt.BreakOnExpressionChange.ToString())
Console.WriteLine("Description {0}", bpt.Description)
Console.WriteLine("Enabled? {0}", bpt.Enabled)
Console.WriteLine("HitCount {0}", bpt.HitCount)
Console.WriteLine("HitTarget {0}", bpt.HitTarget)
Console.WriteLine("HitTest {0}", bpt.HitTest)
Console.WriteLine("ID {0}", bpt.ID)
Console.WriteLine("Owner {0}", bpt.Owner)
Next
End Sub
End Class
End Namespace
出力例:
BreakOnExpressionChange? False
Description Break when the container receives the OnPreExecute event
Enabled? False
HitCount 0
HitTarget 0
HitTest Always
ID -2147483647
Owner Microsoft.SqlServer.Dts.Runtime.TaskHost
注釈
onlyenabledパラメータはtrueに設定すると、 Enabled プロパティの値をチェックし、 Enabled を trueに設定してブレークポイントを含みます。
統合サービス(SSIS)はコンテナやタスクのブレークポイントをサポートします。 SQL Server Data Tools(SSDT)はデバッグウィンドウを提供し、SSISデザイナーはデバッグパッケージ制御フローのための進捗報告を提供します。 SSIS Designerは「 Set Breakpoints 」ダイアログボックスを提供しており、ここでブレークポイントを有効にしたり、ランタイムエンジンが停止するまでのブレークポイント発生回数を設定できます。 タスクブレークポイントが有効の場合、 Control Flow ウィンドウのデザイン面にブレークポイントアイコンが表示されます。 イベントにブレークポイントを設定できます。 イベントのブレークポイント設定についての詳細は、 統合サービス(SSIS)イベントハンドラを参照してください。