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


Класс ForEachItemEnumerator

Implements an enumerator over the ForEachItem collection. This class cannot be inherited.

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

System.Object
  Microsoft.SqlServer.Dts.Runtime.DtsObject
    Microsoft.SqlServer.Dts.Runtime.ForEachEnumerator
      Microsoft.SqlServer.Dts.Runtime.Enumerators.Item.ForEachItemEnumerator

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

Синтаксис

'Декларация
Public NotInheritable Class ForEachItemEnumerator _
    Inherits ForEachEnumerator
'Применение
Dim instance As ForEachItemEnumerator
public sealed class ForEachItemEnumerator : ForEachEnumerator
public ref class ForEachItemEnumerator sealed : public ForEachEnumerator
[<SealedAttribute>]
type ForEachItemEnumerator =  
    class 
        inherit ForEachEnumerator 
    end
public final class ForEachItemEnumerator extends ForEachEnumerator

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

Свойства

  Имя Описание
Открытое свойство CollectionEnumerator Gets or sets Boolean that indicates if the foreach loop enumerator is enumerating collections of objects or enumerating collections of collections. (Производный от ForEachEnumerator.)
Открытое свойство Items Gets or sets a collection of ForEachItems.
Открытое свойство Version Returns the version number of the package. This property is read-only. (Производный от ForEachEnumerator.)

В начало

Методы

  Имя Описание
Открытый метод CanUpdate A Boolean that indicates if the new package XML can update the old package XML. (Производный от ForEachEnumerator.)
Открытый метод Equals Determines whether two object instances are equal. (Производный от DtsObject.)
Открытый метод ExportXML Exports data to an .xml file.
Открытый метод GetEnumerator Gets an IEnumerator interface for iterating through the ForEachItem collection. (Переопределяет ForEachEnumerator.GetEnumerator(Connections, VariableDispenser, IDTSInfoEvents, IDTSLogging).)
Открытый метод GetHashCode Returns the hash code for this instance. (Производный от DtsObject.)
Открытый метод GetType (Производный от Object.)
Открытый метод ImportXML Imports XML into the collection.
Открытый метод InitializeForEachEnumerator Initializes the properties associated with the task. This method is called by the runtime and is not used in code. (Производный от ForEachEnumerator.)
Открытый метод ToString (Производный от Object.)
Открытый метод Update This method updates the old package XML with the new package XML if CanUpdate is set to true. (Производный от ForEachEnumerator.)
Открытый метод Validate Allows the container to determine if it contains invalid settings that will prevent it from executing successfully. (Производный от ForEachEnumerator.)

В начало

Замечания

This class allows access to the enumerator items directly without calling GetEnumerator. This interface also allows the enumerator to have data added to its collection. Additionally, it has ImportXML and ExportXML methods that allow the enumerator to read and write data to an .xml file.

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

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

См. также

Справочник

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