Compartilhar via


Classe ForEachLoopClass

Essa API oferece suporte à infraestrutura do SQL Server 2012 e não se destina a ser usada diretamente no seu código.

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

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly:  Microsoft.SqlServer.DTSRuntimeWrap (em Microsoft.SqlServer.DTSRuntimeWrap.dll)

Sintaxe

'Declaração
<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
'Uso
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

O tipo ForEachLoopClass expõe os membros a seguir.

Construtores

  Nome Descrição
Método público ForEachLoopClass Infraestrutura. Initializes a new instance of the ForEachLoopClass class.

Início

Propriedades

  Nome Descrição
Propriedade pública CreationName Infraestrutura. Returns the string that is used to create an instance of the ForEachLoopClass object. This property is read-only.
Propriedade pública DebugMode Infraestrutura. 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.
Propriedade pública DelayValidation Infraestrutura. Gets or sets a Boolean that indicates whether validation of the task is delayed until run time. The default value is false.
Propriedade pública Description Infraestrutura. Gets or sets the description of the ForEachLoopClass object.
Propriedade pública Disable Infraestrutura. Gets a Boolean that indicates whether the ForEachLoopClass object is disabled.
Propriedade pública DisableEventHandlers Infraestrutura. Gets a Boolean that indicates whether event handlers on task are disabled.
Propriedade pública EventHandlers Infraestrutura. Gets a collection of event handler objects. This field is read-only.
Propriedade pública EventInfos Infraestrutura. Gets a collection of IDTSEventInfo100 objects. This field is read-only.
Propriedade pública Executables Infraestrutura. Gets a collection of executable objects.
Propriedade pública ExecutionDuration Infraestrutura. Returns a value that indicates the amount of time that the container spent in execution, in milliseconds. This property is read-only.
Propriedade pública ExecutionResult Infraestrutura. Returns a value that indicates the success or failure of the execution of the ForEachLoopClass object.
Propriedade pública ExecutionStatus Infraestrutura. Returns a value that indicates the current status of the execution of the ForEachLoopClass object at the time of the call.
Propriedade pública FailPackageOnFailure Infraestrutura. Gets or sets a Boolean that indicates whether the package fails when a child container fails.
Propriedade pública FailParentOnFailure Infraestrutura. Gets or sets a Boolean that defines whether the parent container fails when a child container fails.
Propriedade pública ForcedExecutionValue Infraestrutura. If the ForceExecutionValue property is set to true, gets or sets a value that specifies the optional execution value that the package returns.
Propriedade pública ForceExecutionResult Infraestrutura. Gets or sets a DTSExecResult enumeration value that specifies the forced execution result of the container.
Propriedade pública ForceExecutionValue Infraestrutura. Gets or sets a Boolean that indicates whether the execution value of the container should be forced to contain a particular value.
Propriedade pública ForEachEnumerator Infraestrutura. Gets or sets a host for the IDTSForEachEnumerator100.
Propriedade pública ID Infraestrutura. Gets the GUID of the ForEachLoopClass. The value is read-only.
Propriedade pública IDTSSuspend100_SuspendRequired Infraestrutura. 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.
Propriedade pública IsDefaultLocaleID Infraestrutura. A Boolean that indicates whether the container uses the default locale. This property is read-only.
Propriedade pública IsolationLevel Infraestrutura. Gets or sets the isolation level of the transaction in the ForEachLoopClass object.
Propriedade pública LocaleID Infraestrutura. Gets or sets an Integer that indicates the Microsoft Win32® localeID to use when the ForEachLoopClass object is executed.
Propriedade pública LogEntryInfos Infraestrutura. Gets the IDTSLogEntryInfos100 object for the container. This property is read-only.
Propriedade pública LoggingMode Infraestrutura. Gets or sets a valid value from the DTSLoggingMode enumeration that indicates the logging mode of the container.
Propriedade pública LoggingOptions Infraestrutura. Gets an object that contains properties that indicates the filtering and logging resource for containers. This property is read-only.
Propriedade pública MaximumErrorCount Infraestrutura. Gets or sets an Integer value that indicates the maximum number of errors that can occur before the ForEachLoopClass object stops running.
Propriedade pública Name Infraestrutura. Gets or sets the name of the ForEachLoopClass.
Propriedade pública Parent Infraestrutura. Gets the parent container. The value is read-only.
Propriedade pública PrecedenceConstraints Infraestrutura. Gets an IDTSPrecedenceConstraints100 collection that contains all of the precedence constraints associated with the ForEachLoop.
Propriedade pública Properties Infraestrutura. Returns a collection of IDTSProperty100 objects associated with the ForEachLoop.
Propriedade pública StartTime Infraestrutura. Gets the time that the container began execution. This property is read-only.
Propriedade pública StopTime Infraestrutura. Gets the time that the container ended execution. This property is read-only.
Propriedade pública SuspendRequired Infraestrutura. 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.
Propriedade pública TransactionOption Infraestrutura. Gets or sets a DTSTransactionOption enumeration value that indicates whether the container participates in transactions.
Propriedade pública VariableDispenser Infraestrutura. Gets an IDTSVariableDispenser100 object so variables associated with the container can be locked.
Propriedade pública VariableMappings Infraestrutura. Gets an IDTSForEachVariableMappings100 collection that contains the variable mappings for the ForEachLoop.
Propriedade pública Variables Infraestrutura. Returns a collection that contains the variables associated with this container. This property is read-only.

Início

Métodos

  Nome Descrição
Método público AcceptBreakpointManager Infraestrutura. 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.
Método público ComputeExpressions Infraestrutura. Computes the expressions in the property collection.
Método público Equals (Herdado de Object.)
Método público Execute Infraestrutura. Executes the executable.
Método protegido Finalize (Herdado de Object.)
Método público GetExpression Infraestrutura. Returns a String that contains the expression for the specified property. Null means no expression is assigned.
Método público GetHashCode (Herdado de Object.)
Método público GetParentID Infraestrutura. Gets the ID of the parent container.
Método público GetType (Herdado de Object.)
Método público IDTSForEachLoop100_Execute Infraestrutura. Executes the executable.
Método público IDTSForEachLoop100_Validate Infraestrutura. Verify that the executable will successfully execute by validating all its dependencies and other items before executing it.
Método público IDTSSuspend100_ResumeExecution Infraestrutura. Resumes execution of the task after pausing. The task or container is resumed by the runtime engine.
Método público IDTSSuspend100_SuspendExecution Infraestrutura. Indicates that the executable needs to suspend. This method is called by the runtime engine.
Método público LoadFromXML Infraestrutura. Loads data stored in XML format.
Método protegido MemberwiseClone (Herdado de Object.)
Método público RegenerateID Infraestrutura. For more information, see ForEachLoop.
Método público ResumeExecution Infraestrutura. Resumes execution of the task after pausing. The task or container is resumed by the runtime engine.
Método público SaveToXML Infraestrutura. Saves information to an XML document.
Método público SetExpression Infraestrutura. Assigns the specified expression to the property. Specify nulluma referência nula (Nothing no Visual Basic) to remove an existing expression from the property.
Método público SuspendExecution Infraestrutura. Indicates that the executable needs to suspend. This method is called by the runtime engine.
Método público ToString (Herdado de Object.)
Método público Validate Infraestrutura. Verify that the executable will successfully execute by validating all its dependencies and other items before executing it.

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Dts.Runtime.Wrapper