EmptyEnumerator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an empty enumerator that is returned by the Integration Services runtime when there are no elements in the collection to enumerate over.
public ref class EmptyEnumerator sealed : System::Collections::IEnumerator
public sealed class EmptyEnumerator : System.Collections.IEnumerator
type EmptyEnumerator = class
interface IEnumerator
Public NotInheritable Class EmptyEnumerator
Implements IEnumerator
- Inheritance
-
EmptyEnumerator
- Implements
Remarks
An EmptyEnumerator returns false
on the first call to MoveNext
, which tells you that the enumerator is at the end of its collection.
Constructors
EmptyEnumerator() |
Initializes a new instance of the EmptyEnumerator class. |
Properties
Current |
Raises an error that indicates an empty enumerator. |
Methods
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. |
Reset() |
Sets the enumerator to its initial position, which is before the first element in the collection. |