Partilhar via


Propriedade do RDL Application.LogProviderInfos

Returns a LogProviderInfos collection that contains LogProviderInfo objects. This property is read-only.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (em Microsoft.SqlServer.ManagedDTS.dll)

Sintaxe

'Declaração
Public ReadOnly Property LogProviderInfos As LogProviderInfos 
    Get
'Uso
Dim instance As Application 
Dim value As LogProviderInfos 

value = instance.LogProviderInfos
public LogProviderInfos LogProviderInfos { get; }
public:
property LogProviderInfos^ LogProviderInfos {
    LogProviderInfos^ get ();
}
member LogProviderInfos : LogProviderInfos
function get LogProviderInfos () : LogProviderInfos

Valor da propriedade

Tipo: Microsoft.SqlServer.Dts.Runtime.LogProviderInfos
A LogProviderInfos collection that contains all the LogProviderInfo objects for the application.

Comentários

A Package container includes a collection of log providers that a package and its tasks and containers use to log information when the package runs. Only the Package container includes log providers, but the tasks and containers that the package includes can log information to any of the package log providers. For more information, see Log do SSIS (Integration Services).

Exemplos

The following code example shows how to enumerate over the log providers available to Integration Services.

class ApplicationTests
    {
        static void Main(string[] args)
        {
            Application app = new Application();
            LogProviderInfos lpis = app.LogProviderInfos;
            foreach (LogProviderInfo x in lpis)
                Console.WriteLine(x.Name);
        }
    }
class ApplicationTests
    Sub Main(ByVal args() As String)
        Dim app As Application =  New Application() 
        Dim lpis As LogProviderInfos =  app.LogProviderInfos 
        For Each x As LogProviderInfo In lpis
            Console.WriteLine(x.Name)
        Next
    End Sub
End Class

Sample Output:

DTS Log Provider for Text Files

DTS Log Provider for SQL Server Profiler

DTS Log Provider for SQL Server

DTS Log Provider for Windows Event Log

DTS Log Provider for XML Files

Consulte também

Referência

Application Classe

Namespace Microsoft.SqlServer.Dts.Runtime