语言

ForLoopClass 类

定义

提供一个容器,在包中定义迭代工作流,使用for迭代语句。

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 ,会获得或设置一个值,指定包返回的可选执行值。

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)

把a IDTSBreakpointManager100 传给任务。 任务将使用断点管理器创建、移除并检查断点状态。 该方法由运行时调用,不用于代码中。

ComputeExpressions(Boolean)

计算对象的 ForLoopClass 表达式。

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

执行可执行文件。

GetExpression(String)

返回包含指定属性表达式的字符串。 空意味着没有分配表达式。

GetParentID()

获取该容器的父标识符。

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

执行可执行文件。

IDTSForLoop100_Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

在执行前,通过验证所有依赖和其他项,验证可执行文件是否能成功执行。

IDTSSuspend100_get_SuspendRequired()

提供一个容器,在包中定义迭代工作流,使用for迭代语句。

IDTSSuspend100_ResumeExecution()

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

IDTSSuspend100_set_SuspendRequired(Boolean)

提供一个容器,在包中定义迭代工作流,使用for迭代语句。

IDTSSuspend100_SuspendExecution()

表示可执行文件需要暂停。 该方法由运行时引擎调用。

LoadFromXML(Object, IDTSEvents100)

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

RegenerateID()

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

ResumeExecution()

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

SaveToXML(Object, Object, IDTSEvents100)

将信息保存到XML文档中。

SetExpression(String, String)

将指定的表达式赋予该属性。 指定 null 以从属性中移除已有表达式。

SuspendExecution()

表示可执行文件需要暂停。 该方法由运行时引擎调用。

Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

在执行前,通过验证所有依赖和其他项,验证可执行文件是否能成功执行。

适用于