共用方式為


EmptyEnumerator Class

Definition

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.

Applies to