Поделиться через


Класс ForEachLoopClass

Этот API-интерфейс поддерживает инфраструктуру SQL Server 2012 и не предназначен для использования непосредственно из кода.

Provides a container that defines an iterative workflow in a package using the foreach iteration statement.

Иерархия наследования

System.Object
  Microsoft.SqlServer.Dts.Runtime.Wrapper.ForEachLoopClass

Пространство имен:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Сборка:  Microsoft.SqlServer.DTSRuntimeWrap (в Microsoft.SqlServer.DTSRuntimeWrap.dll)

Синтаксис

'Декларация
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<GuidAttribute("DEFA06B0-9DF0-47B4-BF57-B8A602F99E91")> _
Public Class ForEachLoopClass _
    Implements IDTSExecutable100, ForEachLoop, IDTSForEachLoop100, IDTSContainer100,  _
    IDTSSequence100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSBreakpointSite100,  _
    IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100, IDTSName100
'Применение
Dim instance As ForEachLoopClass
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[GuidAttribute("DEFA06B0-9DF0-47B4-BF57-B8A602F99E91")]
public class ForEachLoopClass : IDTSExecutable100, 
    ForEachLoop, IDTSForEachLoop100, IDTSContainer100, IDTSSequence100, IDTSEventsProvider100, 
    IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, 
    IDTSRuntimeObject100, IDTSName100
[ClassInterfaceAttribute(ClassInterfaceType::None)]
[GuidAttribute(L"DEFA06B0-9DF0-47B4-BF57-B8A602F99E91")]
public ref class ForEachLoopClass : IDTSExecutable100, 
    ForEachLoop, IDTSForEachLoop100, IDTSContainer100, IDTSSequence100, IDTSEventsProvider100, 
    IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, 
    IDTSRuntimeObject100, IDTSName100
[<ClassInterfaceAttribute(ClassInterfaceType.None)>]
[<GuidAttribute("DEFA06B0-9DF0-47B4-BF57-B8A602F99E91")>]
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 
    end
public class ForEachLoopClass implements IDTSExecutable100, ForEachLoop, IDTSForEachLoop100, IDTSContainer100, IDTSSequence100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100, IDTSName100

Тип ForEachLoopClass обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод ForEachLoopClass Инфраструктура. Initializes a new instance of the ForEachLoopClass class.

В начало

Свойства

  Имя Описание
Открытое свойство CreationName Инфраструктура. Returns the string that is used to create an instance of the ForEachLoopClass object. This property is read-only.
Открытое свойство DebugMode Инфраструктура. Gets or sets a Boolean that indicates whether the ForEachLoopClass object is in debug mode and whether it should fire the OnBreakpointHit event while running.
Открытое свойство DelayValidation Инфраструктура. Gets or sets a Boolean that indicates whether validation of the task is delayed until run time. The default value is false.
Открытое свойство Description Инфраструктура. Gets or sets the description of the ForEachLoopClass object.
Открытое свойство Disable Инфраструктура. Gets a Boolean that indicates whether the ForEachLoopClass object is disabled.
Открытое свойство DisableEventHandlers Инфраструктура. Gets a Boolean that indicates whether event handlers on task are disabled.
Открытое свойство EventHandlers Инфраструктура. Gets a collection of event handler objects. This field is read-only.
Открытое свойство EventInfos Инфраструктура. Gets a collection of IDTSEventInfo100 objects. This field is read-only.
Открытое свойство Executables Инфраструктура. Gets a collection of executable objects.
Открытое свойство ExecutionDuration Инфраструктура. Returns a value that indicates the amount of time that the container spent in execution, in milliseconds. This property is read-only.
Открытое свойство ExecutionResult Инфраструктура. Returns a value that indicates the success or failure of the execution of the ForEachLoopClass object.
Открытое свойство ExecutionStatus Инфраструктура. Returns a value that indicates the current status of the execution of the ForEachLoopClass object at the time of the call.
Открытое свойство FailPackageOnFailure Инфраструктура. Gets or sets a Boolean that indicates whether the package fails when a child container fails.
Открытое свойство FailParentOnFailure Инфраструктура. Gets or sets a Boolean that defines whether the parent container fails when a child container fails.
Открытое свойство ForcedExecutionValue Инфраструктура. If the ForceExecutionValue property is set to true, gets or sets a value that specifies the optional execution value that the package returns.
Открытое свойство ForceExecutionResult Инфраструктура. Gets or sets a DTSExecResult enumeration value that specifies the forced execution result of the container.
Открытое свойство ForceExecutionValue Инфраструктура. Gets or sets a Boolean that indicates whether the execution value of the container should be forced to contain a particular value.
Открытое свойство ForEachEnumerator Инфраструктура. Gets or sets a host for the IDTSForEachEnumerator100.
Открытое свойство ID Инфраструктура. Gets the GUID of the ForEachLoopClass. The value is read-only.
Открытое свойство IDTSSuspend100_SuspendRequired Инфраструктура. Gets or sets a Boolean that indicates if tasks should suspend when they encounter a breakpoint. This value is set by the runtime engine for tasks and containers when a breakpoint is encountered.
Открытое свойство IsDefaultLocaleID Инфраструктура. A Boolean that indicates whether the container uses the default locale. This property is read-only.
Открытое свойство IsolationLevel Инфраструктура. Gets or sets the isolation level of the transaction in the ForEachLoopClass object.
Открытое свойство LocaleID Инфраструктура. Gets or sets an Integer that indicates the Microsoft Win32® localeID to use when the ForEachLoopClass object is executed.
Открытое свойство LogEntryInfos Инфраструктура. Gets the IDTSLogEntryInfos100 object for the container. This property is read-only.
Открытое свойство LoggingMode Инфраструктура. Gets or sets a valid value from the DTSLoggingMode enumeration that indicates the logging mode of the container.
Открытое свойство LoggingOptions Инфраструктура. Gets an object that contains properties that indicates the filtering and logging resource for containers. This property is read-only.
Открытое свойство MaximumErrorCount Инфраструктура. Gets or sets an Integer value that indicates the maximum number of errors that can occur before the ForEachLoopClass object stops running.
Открытое свойство Name Инфраструктура. Gets or sets the name of the ForEachLoopClass.
Открытое свойство Parent Инфраструктура. Gets the parent container. The value is read-only.
Открытое свойство PrecedenceConstraints Инфраструктура. Gets an IDTSPrecedenceConstraints100 collection that contains all of the precedence constraints associated with the ForEachLoop.
Открытое свойство Properties Инфраструктура. Returns a collection of IDTSProperty100 objects associated with the ForEachLoop.
Открытое свойство StartTime Инфраструктура. Gets the time that the container began execution. This property is read-only.
Открытое свойство StopTime Инфраструктура. Gets the time that the container ended execution. This property is read-only.
Открытое свойство SuspendRequired Инфраструктура. Gets or sets a Boolean that indicates if tasks should suspend when they encounter a breakpoint. This value is set by the runtime engine for tasks and containers when a breakpoint is encountered.
Открытое свойство TransactionOption Инфраструктура. Gets or sets a DTSTransactionOption enumeration value that indicates whether the container participates in transactions.
Открытое свойство VariableDispenser Инфраструктура. Gets an IDTSVariableDispenser100 object so variables associated with the container can be locked.
Открытое свойство VariableMappings Инфраструктура. Gets an IDTSForEachVariableMappings100 collection that contains the variable mappings for the ForEachLoop.
Открытое свойство Variables Инфраструктура. Returns a collection that contains the variables associated with this container. This property is read-only.

В начало

Методы

  Имя Описание
Открытый метод AcceptBreakpointManager Инфраструктура. Accepts an IDTSBreakpointManager100 manager, that is called by the run-time engine when a task or container is created, to allow the task to create, remove, and check the status of breakpoints. This method is called by the runtime and is not used in code.
Открытый метод ComputeExpressions Инфраструктура. Computes the expressions in the property collection.
Открытый метод Equals (Производный от Object.)
Открытый метод Execute Инфраструктура. Executes the executable.
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetExpression Инфраструктура. Returns a String that contains the expression for the specified property. Null means no expression is assigned.
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetParentID Инфраструктура. Gets the ID of the parent container.
Открытый метод GetType (Производный от Object.)
Открытый метод IDTSForEachLoop100_Execute Инфраструктура. Executes the executable.
Открытый метод IDTSForEachLoop100_Validate Инфраструктура. Verify that the executable will successfully execute by validating all its dependencies and other items before executing it.
Открытый метод IDTSSuspend100_ResumeExecution Инфраструктура. Resumes execution of the task after pausing. The task or container is resumed by the runtime engine.
Открытый метод IDTSSuspend100_SuspendExecution Инфраструктура. Indicates that the executable needs to suspend. This method is called by the runtime engine.
Открытый метод LoadFromXML Инфраструктура. Loads data stored in XML format.
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод RegenerateID Инфраструктура. For more information, see ForEachLoop.
Открытый метод ResumeExecution Инфраструктура. Resumes execution of the task after pausing. The task or container is resumed by the runtime engine.
Открытый метод SaveToXML Инфраструктура. Saves information to an XML document.
Открытый метод SetExpression Инфраструктура. Assigns the specified expression to the property. Specify nullпустая ссылка (Nothing в Visual Basic) to remove an existing expression from the property.
Открытый метод SuspendExecution Инфраструктура. Indicates that the executable needs to suspend. This method is called by the runtime engine.
Открытый метод ToString (Производный от Object.)
Открытый метод Validate Инфраструктура. Verify that the executable will successfully execute by validating all its dependencies and other items before executing it.

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Dts.Runtime.Wrapper