LogEntryInfo.FrequencyHint Propriedade

Definição

Retorna um valor que indica a frequência na qual você espera ver uma entrada de log específica.

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

Valor da propriedade

Um valor do DTSLogEntryFrequency.

Exemplos

O exemplo de código a seguir itera pela LogEntryInfos coleção e, em seguida, imprime as propriedades de cada LogEntryInfo encontrado, incluindo FrequencyHint.

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

namespace LogEntryInfosTest  
{  
    class Program  
    {  
        static void Main(string[] args)  
        {  
            // The package is one of the SSIS Samples.  
            string mySample = @"C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx";  

            Application app = new Application();  
            Package pkg = app.LoadPackage(mySample, null);  
            LogEntryInfos logInfos = pkg.LogEntryInfos;  

            Console.WriteLine("Number of log entries:  {0}", logInfos.Count.ToString());  
            foreach (LogEntryInfo logInfo in logInfos)  
            {  
                Console.WriteLine("CreationName:   {0}", logInfo.CreationName);  
                Console.WriteLine("Description:    {0}", logInfo.Description);  
                Console.WriteLine("FrequencyHint:  {0}", logInfo.FrequencyHint);  
                Console.WriteLine("ID:             {0}", logInfo.ID);  
                Console.WriteLine("Name:           {0}", logInfo.Name);  
            }  
        }  
    }  
}  
Imports System  
Imports System.Collections.Generic  
Imports System.Text  
Imports Microsoft.SqlServer.Dts.Runtime  

Namespace LogEnTryInfosTest  
    Class Program  
        Shared  Sub Main(ByVal args() As String)  
            ' The package is one of the SSIS Samples.  
            Dim mySample As String =  "C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx"   

            Dim app As Application =  New Application()   
            Dim pkg As Package =  app.LoadPackage(mySample,Nothing)   
            Dim logInfos As LogEnTryInfos =  pkg.LogEnTryInfos   

            Console.WriteLine("Number of log entries:  {0}", logInfos.Count.ToString())  
            Dim logInfo As LogEnTryInfo  
            For Each logInfo In logInfos  
                Console.WriteLine("CreationName:   {0}", logInfo.CreationName)  
                Console.WriteLine("Description:    {0}", logInfo.Description)  
                Console.WriteLine("FrequencyHint:  {0}", logInfo.FrequencyHint)  
                Console.WriteLine("ID:             {0}", logInfo.ID)  
                Console.WriteLine("Name:           {0}", logInfo.Name)  
            Next  
        End Sub  
    End Class  
End Namespace  

Saída de exemplo:

Número de entradas de log: 1

Creationname:

Descrição: informações de diagnóstico do pacote de logs, por exemplo, executáveis simultâneos máximos

FrequencyHint: Consistente

ID: {65F44252-EB0C-4CCB-ADE4-BA4AB86B4CF9}

Nome: Diagnóstico

Aplica-se a