Export (0) Print
Expand All

EmptyEnumerator Class

Acts as a placeholder when enumeration is called on an empty collection. This class cannot be inherited.

Object
  Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO.EmptyEnumerator

Namespace:  Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO
Assembly:  Microsoft.SqlServer.ForEachADOEnumerator (in Microsoft.SqlServer.ForEachADOEnumerator.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 indicating an empty enumerator.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodMoveNextAdvances the enumerator to the next element of the collection. The EmptyEnumerator always returns false for this method.
Public methodResetSets the enumerator to its initial position, which is before the first element in the collection.
Public methodToString (Inherited from Object.)
Top

The empty enumerator is returned by the runtime when there are no elements in the collection to enumerate over.

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