Właściwość BreakpointTarget.Owner
Zwraca IDTSBreakpointSite dla zadania, który jest właścicielem punkt przerwania.
Przestrzeń nazw: Microsoft.SqlServer.Dts.Runtime
Zestaw: Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)
Składnia
'Deklaracja
Public ReadOnly Property Owner As IDTSBreakpointSite
Get
'Użycie
Dim instance As BreakpointTarget
Dim value As IDTSBreakpointSite
value = instance.Owner
public IDTSBreakpointSite Owner { get; }
public:
property IDTSBreakpointSite^ Owner {
IDTSBreakpointSite^ get ();
}
member Owner : IDTSBreakpointSite
function get Owner () : IDTSBreakpointSite
Wartość właściwości
Typ: Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite
IDTSBreakpointSite interfejs.
Uwagi
Witryna punkt przerwania jest zadanie, które udostępnia punkt przerwania.Wykonania zadań, które punkty przerwania IDTSBreakpointSite interfejs.To Owner punkty właściwość do zadania, który tworzony miejsce docelowe punkt przerwania.
Przykłady
Poniższy przykład kodu pobiera miejsce docelowe punkt punkt przerwania kolekcja z pakiet i iterację punkty punkt przerwania, wyświetlanie właściwości dla każdego punktu punkt przerwania łącznie z 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
Przykładowe dane wyjściowe:
BreakOnExpressionChange?Fałsz
Opis Podziału, gdy kontener otrzymuje zdarzenie OnPreExecute
Włączony?Fałsz
Liczba trafień 0
HitTarget 0
Zawsze HitTest
IDENTYFIKATOR-2147483647
Właściciel Microsoft.SqlServer.Dts.Runtime.TaskHost