Propriété Package.LogProviders
Gets the collection of log providers associated with the package.
Espace de noms : Microsoft.SqlServer.Dts.Runtime
Assembly : Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)
Syntaxe
'Déclaration
Public ReadOnly Property LogProviders As LogProviders
Get
'Utilisation
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
Valeur de propriété
Type : Microsoft.SqlServer.Dts.Runtime.LogProviders
The collection of log providers associated with the package.
Notes
For more information about log providers, see Journalisation d'Integration Services (SSIS). For more information about using log providers in the graphical user interface, see Journalisation d'Integration Services (SSIS).
Exemples
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")