BreakpointTarget.HitTest 속성

정의

중단점이 발생해야 할지 여부를 테스트하기 위해 스위치로 사용되는 DTSBreakpointHitTest 열거형을 가져오거나 설정합니다.

public:
 property Microsoft::SqlServer::Dts::Runtime::DTSBreakpointHitTest HitTest { Microsoft::SqlServer::Dts::Runtime::DTSBreakpointHitTest get(); void set(Microsoft::SqlServer::Dts::Runtime::DTSBreakpointHitTest value); };
public Microsoft.SqlServer.Dts.Runtime.DTSBreakpointHitTest HitTest { get; set; }
member this.HitTest : Microsoft.SqlServer.Dts.Runtime.DTSBreakpointHitTest with get, set
Public Property HitTest As DTSBreakpointHitTest

속성 값

DTSBreakpointHitTest 열거형입니다.

예제

다음 코드 예제에서는 패키지에서 중단점 대상 컬렉션을 검색하고 중단점을 반복하여 각 중단점에 HitTest대한 속성을 표시합니다.

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? 아니요

컨테이너가 OnPreExecute 이벤트를 받을 때 설명 중단

사용 여부 아니요

HitCount 0

HitTarget 0

HitTest Always

ID -2147483647

소유자 Microsoft.SqlServer.Dts.Runtime.TaskHost

적용 대상