Share via


TaskHost.ExecValueVariable 属性

定义

获取或设置包含任务执行结果的自定义 Variable

public:
 property Microsoft::SqlServer::Dts::Runtime::Variable ^ ExecValueVariable { Microsoft::SqlServer::Dts::Runtime::Variable ^ get(); void set(Microsoft::SqlServer::Dts::Runtime::Variable ^ value); };
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "ExecValueVariableDesc")]
public Microsoft.SqlServer.Dts.Runtime.Variable ExecValueVariable { get; set; }
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "ExecValueVariableDesc")>]
member this.ExecValueVariable : Microsoft.SqlServer.Dts.Runtime.Variable with get, set
Public Property ExecValueVariable As Variable

属性值

包含执行结果的自定义 Variable

属性

注解

包含任务执行结果的自定义变量的名称。 此属性的默认值为 none,指示结果未设置为包中的变量。

TaskHost属性通过ExecValueVariable属性公开ExecutionValue属性。 该任务使用 ExecutionValue 属性提供有关执行结果的可选补充信息。 该 ExecValueVariable 属性允许用户将任务返回的任何变量映射到 ExecutionValue 任务可见的任何变量。 然后,包可以使用返回的值作为确定下一个任务在控制流中运行的条件之一。 For example, if a task deletes rows from a table as part of its Execute method, the task might return the number of rows deleted as the ExecutionValue. 然后,任务的客户端可以使用此值在任务之间的优先约束中定义表达式。

适用于