Compartir a través de


Clase EmptyEnumerator

Provides an empty enumerator that is returned by the Integration Services runtime when there are no elements in the collection to enumerate over.

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.Dts.Runtime
Ensamblado:  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Sintaxis

'Declaración
Public NotInheritable Class EmptyEnumerator _
    Implements IEnumerator
'Uso
Dim instance As EmptyEnumerator
public sealed class EmptyEnumerator : IEnumerator
public ref class EmptyEnumerator sealed : IEnumerator
[<SealedAttribute>]
type EmptyEnumerator =  
    class 
        interface IEnumerator 
    end
public final class EmptyEnumerator implements IEnumerator

El tipo EmptyEnumerator expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público EmptyEnumerator Initializes a new instance of the EmptyEnumerator class.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública Current Raises an error that indicates an empty enumerator.

Arriba

Métodos

  Nombre Descripción
Método público Equals (Se hereda de Object.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método público 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.
Método público Reset Sets the enumerator to its initial position, which is before the first element in the collection.
Método público ToString (Se hereda de Object.)

Arriba

Comentarios

An EmptyEnumerator returns false on the first call to MoveNext, which tells you that the enumerator is at the end of its collection.

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Dts.Runtime