ForLoopClass 类

定义

提供使用迭代语句在包中定义迭代工作流的容器。

public ref class ForLoopClass : Microsoft::SqlServer::Dts::Runtime::Wrapper::ForLoop, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSBreakpointSite100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSContainer100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSEventsProvider100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSExecutionMetrics100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSForLoop100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSName100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPersist100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPropertiesProvider100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSRuntimeObject100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSSequence100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("598B412F-4036-41DD-8F5C-83DED7CE6CCC")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class ForLoopClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.ForLoop, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEventsProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSForLoop100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSSequence100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("20DB93E9-2961-4CB1-A696-4EFD0104B005")]
public class ForLoopClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.ForLoop, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEventsProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSForLoop100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSSequence100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("F8820007-A986-4DE8-8378-45CC12A343C2")]
public class ForLoopClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.ForLoop, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEventsProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSForLoop100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSSequence100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("598B412F-4036-41DD-8F5C-83DED7CE6CCC")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type ForLoopClass = class
    interface IDTSExecutable100
    interface ForLoop
    interface IDTSForLoop100
    interface IDTSContainer100
    interface IDTSSequence100
    interface IDTSEventsProvider100
    interface IDTSExecutionMetrics100
    interface IDTSPropertiesProvider100
    interface IDTSBreakpointSite100
    interface IDTSSuspend100
    interface IDTSPersist100
    interface IDTSRuntimeObject100
    interface IDTSName100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("20DB93E9-2961-4CB1-A696-4EFD0104B005")>]
type ForLoopClass = class
    interface IDTSExecutable100
    interface ForLoop
    interface IDTSForLoop100
    interface IDTSContainer100
    interface IDTSSequence100
    interface IDTSEventsProvider100
    interface IDTSExecutionMetrics100
    interface IDTSPropertiesProvider100
    interface IDTSBreakpointSite100
    interface IDTSSuspend100
    interface IDTSPersist100
    interface IDTSRuntimeObject100
    interface IDTSName100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("F8820007-A986-4DE8-8378-45CC12A343C2")>]
type ForLoopClass = class
    interface IDTSExecutable100
    interface ForLoop
    interface IDTSForLoop100
    interface IDTSContainer100
    interface IDTSSequence100
    interface IDTSEventsProvider100
    interface IDTSExecutionMetrics100
    interface IDTSPropertiesProvider100
    interface IDTSBreakpointSite100
    interface IDTSSuspend100
    interface IDTSPersist100
    interface IDTSRuntimeObject100
    interface IDTSName100
Public Class ForLoopClass
Implements ForLoop, IDTSBreakpointSite100, IDTSContainer100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSForLoop100, IDTSName100, IDTSPersist100, IDTSPropertiesProvider100, IDTSRuntimeObject100, IDTSSequence100
继承
ForLoopClass
属性
实现

注解

有关详细信息,请参阅 ForLoop

构造函数

ForLoopClass()

初始化 ForLoopClass 类的新实例。

属性

AssignExpression

获取或设置用于递增或递减循环计数器的表达式。

CreationName

返回运行时用于创建对象实例的名称,如果存在该对象的集合,则将该对象添加到集合。 此属性为只读。

DebugMode

获取或设置一个布尔值,该值指示任务是否应检查是否启用了断点。

DelayValidation

获取或设置一个值,该值指示是否将任务的验证推迟到运行时。

Description

获取或设置有关对象的说明。

Disable

获取或设置一个值,该值指示是否禁用 IDTSContainer100 对象。

DisableEventHandlers

获取或设置一个布尔值,该值指示是否禁用任务上的事件处理程序。

EvalExpression

获取或设置对每次循环进行计算的表达式。

EventHandlers

返回事件处理程序对象的集合。 此字段为只读。

EventInfos

返回 IDTSEventInfo100 对象的集合。 此字段为只读。

Executables

返回在 ForLoopClass 迭代期间处理的可执行对象的集合。

ExecutionDuration

返回一个值,该值指示在容器中执行所需的时间(毫秒)。 此属性为只读。

ExecutionResult

获取一个值,该值指示 IDTSContainer100 对象执行是成功还是失败。

ExecutionStatus

获取在调用时 IDTSContainer100 对象执行的当前状态。

FailPackageOnFailure

获取或设置一个值,该值指示在子容器失败时包是否失败。

FailParentOnFailure

获取或设置一个值,该值指示在子容器失败时父容器是否失败。

ForcedExecutionValue

如果 ForceExecutionValue 为 true,则获取或设置一个值,该值指定包返回的可选执行值。

ForceExecutionResult

获取或设置容器的强制执行结果。

ForceExecutionValue

获取或设置一个值,该值指示容器的执行值是否应强制包含特定值。

ID

返回分配给对象的唯一 ID。 这通常是 GUID。 此属性为只读。

IDTSSuspend100_SuspendRequired

获取或设置一个布尔值,该值指示在遇到断点时任务是否应挂起。 遇到断点时,将由任务和容器的运行时引擎设置此值。

InitExpression

获取或设置可选的初始化表达式。

IsDefaultLocaleID

获取一个值,该值指示容器是否使用默认区域设置。

IsolationLevel

获取或设置 IDTSContainer100 对象中事务的隔离级别。

LocaleID

获取或设置在执行 IDTSContainer100 对象时要使用的区域设置的标识符。

LogEntryInfos

获取与某一日志条目有关的信息的集合。

LoggingMode

获取或设置容器的日志记录模式。

LoggingOptions

获取一个对象,该对象包含指示容器的筛选和日志记录资源的属性。

MaximumErrorCount

获取或设置容器停止运行前可以出现的最大错误数。

Name

获取或设置分配给对象的名称。

Parent

获取容器的父级。

PrecedenceConstraints

返回 IDTSPrecedenceConstraints100 集合。 此字段为只读。

Properties

ForLoopClass 的一组属性返回到 IDTSProperties100 集合。

StartTime

返回容器开始执行的时间。 此属性为只读。

StopTime

返回容器结束执行的时间。 此属性为只读。

SuspendRequired

获取或设置一个布尔值,该值指示在遇到断点时任务是否应挂起。 遇到断点时,将由任务和容器的运行时引擎设置此值。

TransactionOption

获取或设置一个 DTSTransactionOption 枚举值,该值指示容器是否参与事务。

VariableDispenser

获取一个 IDTSVariableDispenser100 对象,以便可以锁定与容器关联的变量。

Variables

获取一个集合,其中包含与此容器关联的变量。

方法

AcceptBreakpointManager(IDTSBreakpointManager100)

IDTSBreakpointManager100 传递给某一任务。 该任务将使用断点管理器来创建、删除和检查断点的状态。 此方法由运行时调用,在代码中未使用。

ComputeExpressions(Boolean)

计算 ForLoopClass 对象的表达式。

Execute(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100, Object)

执行可执行文件。

GetExpression(String)

返回一个字符串,该字符串包含指定属性的表达式。 Null 表示未分配任何表达式。

GetParentID()

获取此容器的父标识符。

IDTSForLoop100_Execute(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100, Object)

执行可执行文件。

IDTSForLoop100_Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

在执行前通过验证可执行文件的所有依赖项和其他项,来验证可执行文件将成功地执行。

IDTSSuspend100_get_SuspendRequired()

提供使用迭代语句在包中定义迭代工作流的容器。

IDTSSuspend100_ResumeExecution()

暂停后恢复执行任务。 由运行时引擎恢复任务或容器。

IDTSSuspend100_set_SuspendRequired(Boolean)

提供使用迭代语句在包中定义迭代工作流的容器。

IDTSSuspend100_SuspendExecution()

指示可执行文件需要挂起。 运行时引擎调用此方法。

LoadFromXML(Object, IDTSEvents100)

加载以 XML 格式存储的数据。

RegenerateID()

为容器创建一个新的标识符并更新该容器标识符。

ResumeExecution()

暂停后恢复执行任务。 由运行时引擎恢复任务或容器。

SaveToXML(Object, Object, IDTSEvents100)

将信息保存到 XML 文档。

SetExpression(String, String)

将指定的表达式分配给属性。 指定 null 以从属性中删除现有表达式。

SuspendExecution()

指示可执行文件需要挂起。 运行时引擎调用此方法。

Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

在执行前通过验证可执行文件的所有依赖项和其他项,来验证可执行文件将成功地执行。

适用于