Aracılığıyla paylaş


DtsContainer.DebugMode Özelliği

Alır veya ayarlar bir Boole gösterir olup olmadığını DtsContainer nesne hata ayıklama modunda ve olup onu harekete ise OnBreakpointHit olay işlenirken çalışmaktadır.

Ad Alanı:  Microsoft.SqlServer.Dts.Runtime
Derleme:  Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS içinde.dll)

Sözdizimi

'Bildirim
Public Property DebugMode As Boolean
    Get
    Set
'Kullanım
Dim instance As DtsContainer
Dim value As Boolean

value = instance.DebugMode

instance.DebugMode = value
public bool DebugMode { get; set; }
public:
virtual property bool DebugMode {
    bool get () sealed;
    void set (bool value) sealed;
}
abstract DebugMode : bool with get, set
override DebugMode : bool with get, set
final function get DebugMode () : boolean
final function set DebugMode (value : boolean)

Özellik Değeri

Tür: System.Boolean
doğru nesne hata ayıklama modunda ve geçirilir olduğunu OnBreakpointHit olay.

Uygulamalar

IDTSBreakpointSite.DebugMode

Açıklamalar

IsBreakpointTargetEnabled işlev olarak adlandırılan her saat görev karşılaştığı bir kesme noktası kendi kodu.Çağırma nedeni işlev IsBreakpointTargetEnabled kesme noktası hedef etkin olup olmadığını görmek için tekrar tekrar çağrıldığında pahalıdır DebugMode bayrağı geçersiz kılındı ve bu yürütülebilir dosya hata ayıklama işlemi olup olmadığını göstermek için her miras sýnýfý tarafýndan kullanýlan.Bu bayrak olduğunda küme için yanlış, görevler için etkin bir kesme noktası denetlemek için çağrı önleyebilirsiniz.Değeri, doğru için kesme noktaları etkinleştirilmiş ve olduğunda görev denetlemeniz gerekir, gösteren IsBreakpointTargetEnabled denetlenir.

Örnekler

Package Implements sınıfı DtsContainer onun devralma yoluyla EventsProvider.Aşağıdaki kod örneği, paket oluşturur sonra görüntüler ve devralınan değerleri ayarlar DtsContainer.

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Dts.Runtime;

namespace Microsoft.SqlServer.SSIS.Samples
{
    class Program
    {
        static void Main(string[] args)
        {
            // The package is the ExecuteProcess package sample 
            // that is installed with the SSIS samples.
            string pkg = @"C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\ExecuteProcess Sample\ExecuteProcess\UsingExecuteProcess.dtsx";

            Application app = new Application();
            Package p1 = app.LoadPackage(pkg, null);

            // Show the properties inherited from DtsContainer.
            Console.WriteLine("CreationName:    {0}", p1.CreationName);
            Console.WriteLine("DebugMode:       {0}", p1.DebugMode);
            Console.WriteLine("DelayValidation: {0}", p1.DelayValidation);
            Console.WriteLine("Description:     {0}", p1.Description);
            Console.WriteLine("Disable:         {0}", p1.Disable);

            // Description is not set for this sample, so set it.
            p1.Description = "This is the Execute Process Package Sample";
            Console.WriteLine("Description after modification: {0}", p1.Description);

            Console.WriteLine();
        }
    }
}
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.SqlServer.Dts.Runtime
 
Namespace Microsoft.SqlServer.SSIS.Samples
    Class Program
        Shared  Sub Main(ByVal args() As String)
            ' The package is the ExecuteProcess package sample 
            ' that is installed with the SSIS samples.
            Dim pkg As String =  "C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\ExecuteProcess Sample\ExecuteProcess\UsingExecuteProcess.dtsx" 
 
            Dim app As Application =  New Application() 
            Dim p1 As Package =  app.LoadPackage(pkg,Nothing) 
 
            ' Show the properties inherited from DtsContainer.
            Console.WriteLine("CreationName:    {0}", p1.CreationName)
            Console.WriteLine("DebugMode:       {0}", p1.DebugMode)
            Console.WriteLine("DelayValidation: {0}", p1.DelayValidation)
            Console.WriteLine("Description:     {0}", p1.Description)
            Console.WriteLine("Disable:         {0}", p1.Disable)
 
            ' Description is not set for this sample, so set it.
            p1.Description = "This is the Execute Process Package Sample"
            Console.WriteLine("Description after modification: {0}", p1.Description)
 
            Console.WriteLine()
        End Sub
    End Class
End Namespace

Örnek Çıktı:

CreationName: SSIS.Package.2

DebugMode: False

DelayValidation: True

Description:

Disable: False

Description after modification: This is the Execute Process Package Sample