Proprietà LogProviders

Returns the collection of log providers associated with the package.

Spazio dei nomi:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property LogProviders As LogProviders
    Get
'Utilizzo
Dim instance As Package
Dim value As LogProviders

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

Valore proprietà

Tipo: Microsoft.SqlServer.Dts.Runtime. . :: . .LogProviders
A LogProviders collection.

Osservazioni

For more information about log providers, see Provider di log di Integration Services. For more information about using log providers in the graphical user interface, see Implementazione della registrazione nei pacchetti.

Esempi

The following code sample shows how to add the XML File log provider to the log provider collection in the package.

Package pkg = new Package();
// Add a log provider to the package.
LogProvider logProvs = pkg.LogProviders.Add("DTS.LogProviderXMLFile.2");
Dim pkg As Package =  New Package() 
' Add a log provider to the package.
Dim logProvs As LogProvider =  pkg.LogProviders.Add("DTS.LogProviderXMLFile.2")