语言

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

获取 . 的 ForEachLoopClassGUID。 该值为只读。

IDTSSuspend100_SuspendRequired

获得或设置一个布尔值,指示任务在遇到断点时是否应暂停。 当遇到断点时,运行时引擎为任务和容器设置该值。

IsDefaultLocaleID

一个布尔值,表示容器是否使用默认位置。 此属性为只读。

IsolationLevel

获取或设置对象中 ForEachLoopClass 交易的隔离级别。

LocaleID

获取或设置一个整数,指示执行对象时ForEachLoopClass使用的 Microsoft Win32® localeID。

LogEntryInfos

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

LoggingMode

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

LoggingOptions

获取一个包含属性的对象,指示容器的过滤和日志资源。 此属性为只读。

MaximumErrorCount

获取或设置一个整数值,表示在停止运行前 ForEachLoopClass 可能发生的最大错误次数。

Name

获取或设置 . 的名称 ForEachLoopClass

Parent

拿到父容器。 该值为只读。

PrecedenceConstraints

得到 IDTSPrecedenceConstraints100 一个包含所有与 相关的 ForEachLoop优先约束的集合。

Properties

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

StartTime

它会得到容器开始执行的时间。 此属性为只读。

StopTime

它会得到容器执行结束的时间。 此属性为只读。

SuspendRequired

获得或设置一个布尔值,指示任务在遇到断点时是否应暂停。 当遇到断点时,运行时引擎为任务和容器设置该值。

TransactionOption

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

VariableDispenser

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

VariableMappings

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

Variables

返回包含该容器相关变量的集合。 此属性为只读。

方法

名称 说明
AcceptBreakpointManager(IDTSBreakpointManager100)

接受 IDTSBreakpointManager100 一个管理器,运行时引擎在创建任务或容器时调用该管理器,允许任务创建、删除和检查断点状态。 该方法由运行时调用,不用于代码中。

ComputeExpressions(Boolean)

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

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

执行可执行文件。

GetExpression(String)

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

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)

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

适用于