LogProviderBase.InitializeLogProvider 方法
Called when the log provider is added to a package.
命名空间: Microsoft.SqlServer.Dts.Runtime
程序集: Microsoft.SqlServer.ManagedDTS(在 Microsoft.SqlServer.ManagedDTS.dll 中)
语法
声明
Public Overridable Sub InitializeLogProvider ( _
connections As Connections, _
events As IDTSInfoEvents, _
refTracker As ObjectReferenceTracker _
)
用法
Dim instance As LogProviderBase
Dim connections As Connections
Dim events As IDTSInfoEvents
Dim refTracker As ObjectReferenceTracker
instance.InitializeLogProvider(connections, _
events, refTracker)
public virtual void InitializeLogProvider(
Connections connections,
IDTSInfoEvents events,
ObjectReferenceTracker refTracker
)
public:
virtual void InitializeLogProvider(
Connections^ connections,
IDTSInfoEvents^ events,
ObjectReferenceTracker^ refTracker
)
abstract InitializeLogProvider :
connections:Connections *
events:IDTSInfoEvents *
refTracker:ObjectReferenceTracker -> unit
override InitializeLogProvider :
connections:Connections *
events:IDTSInfoEvents *
refTracker:ObjectReferenceTracker -> unit
public function InitializeLogProvider(
connections : Connections,
events : IDTSInfoEvents,
refTracker : ObjectReferenceTracker
)
参数
- connections
类型:Microsoft.SqlServer.Dts.Runtime.Connections
The Connections collection of the package.
- events
类型:Microsoft.SqlServer.Dts.Runtime.IDTSInfoEvents
The IDTSInfoEvents supplied by the package.
- refTracker
类型:Microsoft.SqlServer.Dts.Runtime.ObjectReferenceTracker
Reserved for future use. Use nullnull 引用(在 Visual Basic 中为 Nothing).
注释
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.