InitializeForEachEnumerator 方法
Initializes the properties associated with the task. This method is called by the runtime and is not used in code.
命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)
語法
'宣告
Public Overridable Sub InitializeForEachEnumerator ( _
connections As Connections, _
events As IDTSInfoEvents, _
refTracker As ObjectReferenceTracker _
)
'用途
Dim instance As ForEachEnumerator
Dim connections As Connections
Dim events As IDTSInfoEvents
Dim refTracker As ObjectReferenceTracker
instance.InitializeForEachEnumerator(connections, _
events, refTracker)
public virtual void InitializeForEachEnumerator(
Connections connections,
IDTSInfoEvents events,
ObjectReferenceTracker refTracker
)
public:
virtual void InitializeForEachEnumerator(
Connections^ connections,
IDTSInfoEvents^ events,
ObjectReferenceTracker^ refTracker
)
abstract InitializeForEachEnumerator :
connections:Connections *
events:IDTSInfoEvents *
refTracker:ObjectReferenceTracker -> unit
override InitializeForEachEnumerator :
connections:Connections *
events:IDTSInfoEvents *
refTracker:ObjectReferenceTracker -> unit
public function InitializeForEachEnumerator(
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 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing).
備註
The InitializeForEachEnumerator method is called when the ForEach enumerator is added to a package, or when a package is loaded that contains the enumerator.