Export (0) Print
Expand All

EmptyEnumerator Class

Provides an empty enumerator that is returned by the Integration Services runtime when there are no elements in the collection to enumerate over.

System.Object
  Microsoft.SqlServer.Dts.Runtime.EmptyEnumerator

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

public sealed class EmptyEnumerator : IEnumerator

The EmptyEnumerator type exposes the following members.

  NameDescription
Public methodEmptyEnumeratorInitializes a new instance of the EmptyEnumerator class.
Top

  NameDescription
Public propertyCurrentRaises an error that indicates an empty enumerator.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMoveNextAdvances the enumerator to the next element of the collection. The EmptyEnumerator returns false for this method, because there is no object to move to in the empty collection.
Public methodResetSets the enumerator to its initial position, which is before the first element in the collection.
Public methodToString (Inherited from Object.)
Top

An EmptyEnumerator returns false on the first call to MoveNext, which tells you that the enumerator is at the end of its collection.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft