Share via


LogProvider.DelayValidation Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines booleschen Werts, der angibt, ob ein Aufruf Validate(IDTSInfoEvents) für den Protokollanbieter verzögert wird, bis die Paketausführung erfolgt.

public:
 property bool DelayValidation { bool get(); void set(bool value); };
public bool DelayValidation { get; set; }
member this.DelayValidation : bool with get, set
Public Property DelayValidation As Boolean

Eigenschaftswert

Ein boolescher Wert, der angibt, ob die Überprüfung bis zur Paketausführung verzögert wird. Ein Wert von true gibt an, dass die Überprüfung bis zur Paketausführung verzögert wird. Der Standardwert ist false.

Beispiele

Im folgenden Codebeispiel wird ein Paket geladen, für das die Protokollierung aktiviert wurde. Nach dem Laden des Pakets wird die LogProviders Auflistung erstellt, und jeder Protokollanbieter in der Auflistung wird übergezählt, wobei die Werte für jede Eigenschaft, einschließlich der DelayValidation.

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

namespace LogProvider_Properties_Test  
{  
    class Program  
    {  
        static void Main(string[] args)  
        {  
            // The package is one of the SSIS samples,  
            // modified to log information to the "SSIS  
            // log provider for Text files".  
            string mySample = @"C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx";  
            // Create the Application, and load the sample.  
            Application app = new Application();  
            Package pkg = app.LoadPackage(mySample, null);  

            // Get the LogProviders collection from the package.  
            LogProviders logProvs = pkg.LogProviders;  
            foreach (LogProvider logProv in logProvs)  
            {  
                Console.WriteLine("ConfigString:   {0}", logProv.ConfigString);  
                Console.WriteLine("CreationName    {0}", logProv.CreationName);  
                Console.WriteLine("DelayValidation {0}", logProv.DelayValidation);  
                Console.WriteLine("Description     {0}", logProv.Description);  
                Console.WriteLine("HostType        {0}", logProv.HostType);  
                Console.WriteLine("ID              {0}", logProv.ID);  
                Console.WriteLine("InnerObject     {0}", logProv.InnerObject);  
                Console.WriteLine("Name            {0}", logProv.Name);  
             }  
        }  
    }  
}  
Imports System  
Imports System.Collections.Generic  
Imports System.Text  
Imports Microsoft.SqlServer.Dts.Runtime  
Imports Microsoft.SqlServer.Dts.Tasks.DMQueryTask  

Namespace LogProvider_Properties_Test  
    Class Program  
        Shared  Sub Main(ByVal args() As String)  
            ' The package is one of the SSIS samples,  
            ' modified to log information to the "SSIS  
            ' log provider for Text files".  
            Dim mySample As String =  "C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx"   
            ' Create the Application, and load the sample.  
            Dim app As Application =  New Application()   
            Dim pkg As Package =  app.LoadPackage(mySample,Nothing)   

            ' Get the LogProviders collection from the package.  
            Dim logProvs As LogProviders =  pkg.LogProviders   
            Dim logProv As LogProvider  
            For Each logProv In logProvs  
                Console.WriteLine("ConfigString:   {0}", logProv.ConfigString)  
                Console.WriteLine("CreationName    {0}", logProv.CreationName)  
                Console.WriteLine("DelayValidation {0}", logProv.DelayValidation)  
                Console.WriteLine("Description     {0}", logProv.Description)  
                Console.WriteLine("HostType        {0}", logProv.HostType)  
                Console.WriteLine("ID              {0}", logProv.ID)  
                Console.WriteLine("InnerObject     {0}", logProv.InnerObject)  
                Console.WriteLine("Name            {0}", logProv.Name)  
            Next  
        End Sub  
    End Class  
End Namespace  

Beispielausgabe:

Configstring:

CreationName DTS. LogProviderTextFile.1

DelayValidation False

Beschreibung Schreibt Protokolleinträge für Ereignisse in eine CSV-Datei

HostType LogProvider

ID {1E107E39-DB79-4F02-B8A7-61D88F2DEF63}

InnerObject System.__ComObject

Name SSIS-Protokollanbieter für Textdateien

Hinweise

Der Wert dieser Eigenschaft steuert, wenn die Überprüfung verzögert wird, bis die Methode des Pakets Execute aufgerufen wird.

Gilt für: