EmptyEnumerator Class
Collapse the table of content
Expand the table of content

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.


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.

Public methodEmptyEnumeratorInitializes a new instance of the EmptyEnumerator class.

Public propertyCurrentRaises an error that indicates an empty enumerator.

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.)

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

© 2016 Microsoft