EmptyEnumerator Class

 

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

Namespace:   Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO
Assembly:  Microsoft.SqlServer.ForEachADOEnumerator (in Microsoft.SqlServer.ForEachADOEnumerator.dll)

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

public sealed class EmptyEnumerator : IEnumerator

NameDescription
System_CAPS_pubmethodEmptyEnumerator()

Initializes a new instance of the EmptyEnumerator class.

NameDescription
System_CAPS_pubpropertyCurrent

Raises an error indicating an empty enumerator.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodMoveNext()

Advances the enumerator to the next element of the collection. The EmptyEnumerator always returns false for this method.

System_CAPS_pubmethodReset()

Sets the enumerator to its initial position, which is before the first element in the collection.

System_CAPS_pubmethodToString()

(Inherited from Object.)

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.

Return to top
Show: