Partager via


Classe ForEachFromVarEnumerator

This enumerator is used to loop over the objects that are in the variable specified in VariableName.

Espace de noms :  Microsoft.SqlServer.Dts.Runtime.Enumerators.FromVar
Assembly :  Microsoft.SqlServer.ForEachFromVarEnumerator (dans Microsoft.SqlServer.ForEachFromVarEnumerator.dll)

Syntaxe

'Déclaration
Public NotInheritable Class ForEachFromVarEnumerator _
    Inherits ForEachEnumerator _
    Implements IDTSComponentPersist, IDTSForEachFromVarEnumerator
'Utilisation
Dim instance As ForEachFromVarEnumerator
public sealed class ForEachFromVarEnumerator : ForEachEnumerator, 
    IDTSComponentPersist, IDTSForEachFromVarEnumerator
public ref class ForEachFromVarEnumerator sealed : public ForEachEnumerator, 
    IDTSComponentPersist, IDTSForEachFromVarEnumerator
[<SealedAttribute>]
type ForEachFromVarEnumerator =  
    class
        inherit ForEachEnumerator
        interface IDTSComponentPersist
        interface IDTSForEachFromVarEnumerator
    end
public final class ForEachFromVarEnumerator extends ForEachEnumerator implements IDTSComponentPersist, IDTSForEachFromVarEnumerator

Notes

An example of the use of this enumerator is when a query is run, and the result of the query is stored in the variable. You can use this enumerator to loop over the query results.

Hiérarchie d'héritage

System. . :: . .Object
  Microsoft.SqlServer.Dts.Runtime. . :: . .DtsObject
    Microsoft.SqlServer.Dts.Runtime. . :: . .ForEachEnumerator
      Microsoft.SqlServer.Dts.Runtime.Enumerators.FromVar..::..ForEachFromVarEnumerator

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.