BreakpointTarget.Owner プロパティ

定義

ブレークポイントを所有するタスクの IDTSBreakpointSite を返します。

public:
 property Microsoft::SqlServer::Dts::Runtime::IDTSBreakpointSite ^ Owner { Microsoft::SqlServer::Dts::Runtime::IDTSBreakpointSite ^ get(); };
public Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite Owner { get; }
member this.Owner : Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite
Public ReadOnly Property Owner As IDTSBreakpointSite

プロパティ値

IDTSBreakpointSite インターフェイス。

次のコード例では、パッケージからブレークポイント ターゲット コレクションを取得し、ブレークポイントを反復処理して、ブレークポイントのプロパティ Ownerを表示します。

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

説明 コンテナーが OnPreExecute イベントを受信すると中断する

有効? False

HitCount 0

HitTarget 0

HitTest Always

ID -2147483647

所有者 Microsoft.SqlServer.Dts.Runtime.TaskHost

注釈

ブレークポイント サイトは、ブレークポイントを提供するタスクです。 ブレークポイントを提供するタスクは、IDTSBreakpointSite インターフェイスを実装します。 この Owner プロパティは、ブレークポイント ターゲットを作成したタスクを指します。

適用対象