Condividi tramite


Package.LogProviders Property

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
public LogProviders LogProviders { get; }
public:
property LogProviders^ LogProviders {
    LogProviders^ get ();
}
/** @property */
public LogProviders get_LogProviders ()
public function get LogProviders () : LogProviders

Valore proprietà

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.

Esempio

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.LogProvider.XMLFile.1");
Dim pkg As Package =  New Package() 
' Add a log provider to the package.
Dim logProvs As LogProvider =  pkg.LogProviders.Add("DTS.LogProvider.XMLFile.1")

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

Package Class
Package Members
Microsoft.SqlServer.Dts.Runtime Namespace