ForEachLoopClass 类

定义

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

public ref class ForEachLoopClass : Microsoft::SqlServer::Dts::Runtime::Wrapper::ForEachLoop, 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::IDTSForEachLoop100, 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("C2DA94B4-782A-4F02-8532-B79F2F17EF2C")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class ForEachLoopClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.ForEachLoop, 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.IDTSForEachLoop100, 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("8D9B72A5-CF6C-43F6-810D-BA54BE7CDF5A")]
public class ForEachLoopClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.ForEachLoop, 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.IDTSForEachLoop100, 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("B4239650-285C-4F45-8F7B-759C3009A565")]
public class ForEachLoopClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.ForEachLoop, 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.IDTSForEachLoop100, 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("C2DA94B4-782A-4F02-8532-B79F2F17EF2C")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type ForEachLoopClass = class
    interface IDTSExecutable100
    interface ForEachLoop
    interface IDTSForEachLoop100
    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("8D9B72A5-CF6C-43F6-810D-BA54BE7CDF5A")>]
type ForEachLoopClass = class
    interface IDTSExecutable100
    interface ForEachLoop
    interface IDTSForEachLoop100
    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("B4239650-285C-4F45-8F7B-759C3009A565")>]
type ForEachLoopClass = class
    interface IDTSExecutable100
    interface ForEachLoop
    interface IDTSForEachLoop100
    interface IDTSContainer100
    interface IDTSSequence100
    interface IDTSEventsProvider100
    interface IDTSExecutionMetrics100
    interface IDTSPropertiesProvider100
    interface IDTSBreakpointSite100
    interface IDTSSuspend100
    interface IDTSPersist100
    interface IDTSRuntimeObject100
    interface IDTSName100
Public Class ForEachLoopClass
Implements ForEachLoop, IDTSBreakpointSite100, IDTSContainer100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSForEachLoop100, IDTSName100, IDTSPersist100, IDTSPropertiesProvider100, IDTSRuntimeObject100, IDTSSequence100
继承
ForEachLoopClass
属性
实现

构造函数

ForEachLoopClass()

初始化 ForEachLoopClass 类的新实例。

属性

CreationName

返回用于创建 ForEachLoopClass 对象实例的字符串。 此属性为只读。

DebugMode

获取或设置一个布尔值,该值指示对象是否 ForEachLoopClass 处于调试模式,以及它是否应在运行时触发 OnBreakpointHit(IDTSBreakpointSite100, IDTSBreakpointTarget100) 事件。

DelayValidation

获取或设置一个布尔值,该值指示验证任务是否延迟到运行时。 默认值为 false。

Description

获取或设置 ForEachLoopClass 对象的说明。

Disable

获取一个布尔值,该值指示是否 ForEachLoopClass 禁用对象。

DisableEventHandlers

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

EventHandlers

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

EventInfos

获取 IDTSEventInfo100 对象的集合。 此字段为只读。

Executables

获取可执行对象的集合。

ExecutionDuration

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

ExecutionResult

返回指示 ForEachLoopClass 对象执行是成功还是失败的值。

ExecutionStatus

返回指示在调用时 ForEachLoopClass 对象执行的当前状态的值。

FailPackageOnFailure

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

FailParentOnFailure

获取或设置一个布尔值,该值定义父容器在子容器失败时是否失败。

ForcedExecutionValue

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

ForceExecutionResult

获取或设置一个 DTSExecResult 枚举值,该值指定容器的强制执行结果。

ForceExecutionValue

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

ForEachEnumerator

获取或设置 IDTSForEachEnumerator100 的宿主。

ID

获取 ForEachLoopClass 的 GUID。 该值为只读的。

IDTSSuspend100_SuspendRequired

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

IsDefaultLocaleID

一个布尔值,指示容器是否使用默认区域设置。 此属性为只读。

IsolationLevel

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

LocaleID

获取或设置一个 Integer 类型的值,该值指示执行对象时 ForEachLoopClass 要使用的 Microsoft Win32® 区域设置 ID。

LogEntryInfos

获取容器的 IDTSLogEntryInfos100 对象。 此属性为只读。

LoggingMode

获取或设置 DTSLoggingMode 枚举中的一个有效值,该值指示容器的日志记录模式。

LoggingOptions

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

MaximumErrorCount

获取或设置一个 Integer 值,该值指示对象停止运行之前 ForEachLoopClass 可能发生的最大错误数。

Name

获取或设置 ForEachLoopClass 的名称。

Parent

获取父容器。 该值为只读的。

PrecedenceConstraints

获取包含与 IDTSPrecedenceConstraints100 关联的所有优先约束的 ForEachLoop 集合。

Properties

返回与 IDTSProperty100 关联的 ForEachLoop 对象的集合。

StartTime

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

StopTime

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

SuspendRequired

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

TransactionOption

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

VariableDispenser

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

VariableMappings

获取包含 IDTSForEachVariableMappings100 的变量映射的 ForEachLoop 集合。

Variables

返回一个集合,其中包含与此容器关联的变量。 此属性为只读。

方法

AcceptBreakpointManager(IDTSBreakpointManager100)

接受 IDTSBreakpointManager100 管理器,在创建任务或容器时由运行时引擎调用该管理器,以便使任务能够创建、删除和检查断点的状态。 此方法由运行时调用,在代码中未使用。

ComputeExpressions(Boolean)

计算属性集合中的表达式。

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

执行可执行文件。

GetExpression(String)

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

GetParentID()

获取父容器的 ID。

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

执行可执行文件。

IDTSForEachLoop100_Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

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

IDTSSuspend100_get_SuspendRequired()

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

IDTSSuspend100_ResumeExecution()

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

IDTSSuspend100_set_SuspendRequired(Boolean)

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

IDTSSuspend100_SuspendExecution()

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

LoadFromXML(Object, IDTSEvents100)

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

RegenerateID()

有关详细信息,请参阅 ForEachLoop

ResumeExecution()

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

SaveToXML(Object, Object, IDTSEvents100)

将信息保存到 XML 文档。

SetExpression(String, String)

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

SuspendExecution()

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

Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

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

适用于