共用方式為


DefaultEvents.OnVariableValueChanged(DtsContainer, Variable, Boolean) Method

Definition

This event is used by the Integration Services run-time. It is not called by tasks.

public:
 virtual void OnVariableValueChanged(Microsoft::SqlServer::Dts::Runtime::DtsContainer ^ DtsContainer, Microsoft::SqlServer::Dts::Runtime::Variable ^ variable, bool % fireAgain);
public virtual void OnVariableValueChanged (Microsoft.SqlServer.Dts.Runtime.DtsContainer DtsContainer, Microsoft.SqlServer.Dts.Runtime.Variable variable, ref bool fireAgain);
abstract member OnVariableValueChanged : Microsoft.SqlServer.Dts.Runtime.DtsContainer * Microsoft.SqlServer.Dts.Runtime.Variable * bool -> unit
override this.OnVariableValueChanged : Microsoft.SqlServer.Dts.Runtime.DtsContainer * Microsoft.SqlServer.Dts.Runtime.Variable * bool -> unit
Public Overridable Sub OnVariableValueChanged (DtsContainer As DtsContainer, variable As Variable, ByRef fireAgain As Boolean)

Parameters

DtsContainer
DtsContainer

The task.

variable
Variable

The variable that has changed.

fireAgain
Boolean

A Boolean that indicates whether this should continue firing or stop firing. A value of true indicates that it should continue firing.

Implements

Remarks

This event is called by variables whenever their value is changed. OnVariableValueChanged should not be called by tasks, because it is raised by the run-time engine by the variables. If a task calls OnVariableValueChanged, the method will return success but no event handler will be executed.

Applies to