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.

Inheritance Hierarchy


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


Public NotInheritable Class EmptyEnumerator _
    Implements IEnumerator
Dim instance As EmptyEnumerator
public sealed class EmptyEnumerator : IEnumerator
public ref class EmptyEnumerator sealed : IEnumerator
type EmptyEnumerator =  
        interface IEnumerator
public final class EmptyEnumerator implements IEnumerator

The EmptyEnumerator type exposes the following members.


  Name Description
Public method EmptyEnumerator Initializes a new instance of the EmptyEnumerator class.



  Name Description
Public property Current Raises an error that indicates an empty enumerator.



  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method MoveNext Advances 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 method Reset Sets the enumerator to its initial position, which is before the first element in the collection.
Public method ToString (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.

Thread Safety

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