共用方式為


LogProviderBase.InitializeLogProvider Method

Definition

Called when the log provider is added to a package.

public:
 virtual void InitializeLogProvider(Microsoft::SqlServer::Dts::Runtime::Connections ^ connections, Microsoft::SqlServer::Dts::Runtime::IDTSInfoEvents ^ events, Microsoft::SqlServer::Dts::Runtime::ObjectReferenceTracker ^ refTracker);
public virtual void InitializeLogProvider (Microsoft.SqlServer.Dts.Runtime.Connections connections, Microsoft.SqlServer.Dts.Runtime.IDTSInfoEvents events, Microsoft.SqlServer.Dts.Runtime.ObjectReferenceTracker refTracker);
abstract member InitializeLogProvider : Microsoft.SqlServer.Dts.Runtime.Connections * Microsoft.SqlServer.Dts.Runtime.IDTSInfoEvents * Microsoft.SqlServer.Dts.Runtime.ObjectReferenceTracker -> unit
override this.InitializeLogProvider : Microsoft.SqlServer.Dts.Runtime.Connections * Microsoft.SqlServer.Dts.Runtime.IDTSInfoEvents * Microsoft.SqlServer.Dts.Runtime.ObjectReferenceTracker -> unit
Public Overridable Sub InitializeLogProvider (connections As Connections, events As IDTSInfoEvents, refTracker As ObjectReferenceTracker)

Parameters

connections
Connections

The Connections collection of the package.

events
IDTSInfoEvents

The IDTSInfoEvents supplied by the package.

refTracker
ObjectReferenceTracker

Reserved for future use. Use null.

Remarks

The InitializeLogProvider method is called when a log provider is added to a package, or when a package is loaded that contains the log provider.

You use this method to store the Connections and DesignEvents properties of the package in member variables so they can be used later.

Applies to